threads / discuss / 64673

Error in the manual

Subject: Error in the manual

## tl;dr

2 messages between Dec 23, 2025 and Dec 23, 2025.

replies: 1people: 2as markdown or json

Egor Ibragimov· Dec 23, 2025, 19:28 UTC · lore
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
Andrew Chitester· Dec 23, 2025, 21:00 UTC · re: Egor Ibragimov · lore

Re: Error in the manual

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.
Show 14 quoted lines
> $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.

← back to recent threads