# Error in the manual

2 messages from 2025-12-23 to 2025-12-23. Participants: Egor Ibragimov, Andrew Chitester.
Thread: https://gitlist.dev/t/64673

## Egor Ibragimov, 2025-12-23 19:28

Subject: Error in the manual
Message-ID: <CABd08tVFKDoBtdBsPHaE=Zocoj6H8yuhk86Bg+99zB_H7+r2BA@mail.gmail.com>
URL: https://gitlist.dev/e/CABd08tVFKDoBtdBsPHaE%3DZocoj6H8yuhk86Bg%2B99zB_H7%2Br2BA%40mail.gmail.com

```
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, 2025-12-23 21:00

Subject: Re: Error in the manual
Message-ID: <87sed09am1.fsf@fastmail.com>
URL: https://gitlist.dev/e/87sed09am1.fsf%40fastmail.com
In-Reply-To: <CABd08tVFKDoBtdBsPHaE=Zocoj6H8yuhk86Bg+99zB_H7+r2BA@mail.gmail.com>

```
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.

```
