git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Renaming a remote is 'rename', but removing is 'rm'

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Sep 5, 2012, 08:49 UTC
Message-ID
<CACsJy8Bi=b1Fuht8q5XcnGE3rFAVojj+MAXvKZAnrqseYnDy+g@mail.gmail.com>
In-Reply-To
<1346831961-ner-2892@calvin>
On Wed, Sep 5, 2012 at 2:59 PM, Tomas Carnecky <tomas.carnecky@gmail.com> wrote:
Show 13 quoted lines
> A fella on IRC was confused by $subject. And it did bother me sometimes as
> well. If you don't use `git remote` often, it is confusing that the commands
> are named inconsistently.
>
> If I know that there is `git remote rm` then I kindof expect `git remote mv`
> to exist. Because I am used to rm/mv and git rm/git mv as the standard unix
> commands for renaming and removing something. On the other hand, if I know
> that there is `git remote rename`, with the verb fully written out, I expect
> `git remote delete/remove` to exist (or something similar, with the verb fully
> written out).
>
> Would there be any desire to make the subcommands more consistent in that
> regard?

Looking at the remote command list, "rm" is the only abbreviation. I guess we should add "delete" (or "remove") as an alias for "rm".

-- 
Duy
Previous: Tomas CarneckyNext: Matthieu Moy
Message 2 of 5 in “Renaming a remote is 'rename', but removing is 'rm'”
  1. Tomas CarneckySep 5, 2012
  2. Nguyen Thai Ngoc DuySep 5, 2012
  3. Matthieu MoySep 5, 2012
  4. Junio C HamanoSep 6, 2012
  5. remote: prefer subcommand name 'remove' to 'rm'Nguyễn Thái Ngọc Duy, Sep 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.