git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Error in the manual
@ 2025-12-23 19:28 Egor Ibragimov
  2025-12-23 21:00 ` Andrew Chitester
  0 siblings, 1 reply; 2+ messages in thread
From: Egor Ibragimov @ 2025-12-23 19:28 UTC (permalink / raw)
  To: git

Hello, there is an error in the manual.

$git remote --help
or im my case I enter incorrect command
$git remote list

The help message:

usage: git remote [-v | --verbose]
...
  or: git remote set-url --add <name> <newurl>

If to type command according to help message, the error appears:

$ git remote --add gitverse https://repository.domain/MyName/MyRepository
error: unknown option `add' ...

The correct command is

$ git remote add gitverse https://repository.domain/MyName/MyRepository

And the correct help message is

   or: git remote set-url add <name> <newurl>

In the manpage the same error too.

$ git -v
git version 2.43.0

-- 
Egor Ibragimov
juzujka@gmail.com
+7-916-807-5378

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in the manual
  2025-12-23 19:28 Error in the manual Egor Ibragimov
@ 2025-12-23 21:00 ` Andrew Chitester
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Chitester @ 2025-12-23 21:00 UTC (permalink / raw)
  To: juzujka; +Cc: git

I'm not seeing how this is an error. The manual page for git-remote
seems to address what `set-url` does and what `add` does.

> Hello, there is an error in the manual.

Hello.

> $git remote --help
> or im my case I enter incorrect command
> $git remote list
>
> The help message:
>
> usage: git remote [-v | --verbose]
> ...
>   or: git remote set-url --add <name> <newurl>
>
> If to type command according to help message, the error appears:
>
> $ git remote --add gitverse https://repository.domain/MyName/MyRepository
> error: unknown option `add' ...

You didn't use the command offered in the help message:

$ git remote set-url --add

Use it to add a url to a remote. As far as I can tell everything is
working and documented correctly here.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-23 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-23 19:28 Error in the manual Egor Ibragimov
2025-12-23 21:00 ` Andrew Chitester

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).