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

Git's inconsistent command line options

From
Graeme Geldenhuys <graemeg@gmail.com>
Date
Aug 25, 2015, 08:01 UTC
Message-ID
<mrh7ck$r0g$1@ger.gmane.org>
Hi,

I've used Git for years and this has always bothered me. Has anybody else noticed the inconsistent command line parameteres for seemingly similar tasks. There are many examples, but I'll list only two (I can supply a more extensive list if needed).

eg: Renaming things.
 * When working with branches it uses "-m" or "-M" to rename a branch.
 * When working with remote repos it use "rename"  (not even the more
common -- prefix either).
eg: Deleting things
  * When working with branches it uses "-d" or "-D" to delete a branch
  * When working with remote branch it uses only a push command.
  * When deleting a remote repo it uses "remove" (again not even with
the commonly used -- prefix)

Even though I have worked with Git since 2009, I still have to reference the help to remind me of what parameter to use in certain situation simply because similar tasks differ so much.

Maybe we could address this in the next major version of Git? Has anybody else thought about this or started work on this? Or was this discussed before and declined (link?).

Regards,
  Graeme
Next: Junio C Hamano
Message 1 of 25 in “Git's inconsistent command line options”
  1. Graeme GeldenhuysAug 25, 2015
  2. Junio C HamanoAug 25, 2015
  3. Jacob KellerAug 25, 2015
  4. Stefan BellerAug 25, 2015
  5. Jacob KellerAug 25, 2015
  6. Junio C HamanoAug 25, 2015
  7. Hilco WijbengaAug 26, 2015
  8. Junio C HamanoAug 26, 2015
  9. Jacob KellerAug 26, 2015
  10. Junio C HamanoAug 26, 2015
  11. Philip OakleyAug 26, 2015
  12. Jacob KellerAug 26, 2015
  13. Jacob KellerAug 26, 2015
  14. Jacob KellerAug 26, 2015
  15. Andreas SchwabAug 26, 2015
  16. Jacob KellerAug 26, 2015
  17. Duy NguyenAug 31, 2015
  18. Barry WarsawAug 31, 2015
  19. David AguilarSep 1, 2015
  20. Barry WarsawSep 1, 2015
  21. Junio C HamanoSep 1, 2015
  22. Barry WarsawSep 1, 2015
  23. Stefan BellerSep 1, 2015
  24. Michael J GruberSep 9, 2015
  25. Michael J GruberSep 9, 2015

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.