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

Re: [PATCH] git-reset.txt: Use commit~1 notation over commit^

From
Kevin Ballard <kevin@sb.org>
Date
Dec 1, 2010, 22:56 UTC
Message-ID
<F13BED73-8C90-46D9-8AC9-054EF24DC688@sb.org>
In-Reply-To
<87ipzdt8gb.fsf@picasso.cante.net>
On Dec 1, 2010, at 2:49 PM, Jari Aalto wrote:
> Whatever you feel. Consistency is important viewpoint. Try explaining to
> a group of people these two variations. The make them write scripts to
> use git commands. Guess which notation they choose? The "^" isnt' even
> scriptable.

What do you mean? I've personally taught nearly everybody at my office how to use git, and every single one of them uses ^ when they want to go to the previous commit and ~n when they want to go n commits back (where n > 1). Even the few people who knew git before I talked to them use this convention. And guess where those people learned it? By seeing the different syntaxes in the manpage. Even for the people I taught, I never told them expressly to use HEAD^ vs HEAD~3, but through the combination of my examples and the examples in the manpages, they all understood both operators and how to use them without any difficulty whatsoever.

You stated that you have "witnessed close hand for thousands of learners." And you state that these people don't understand this sort of documentation. I don't mean to give offense, but have you ever considered what the common element here is?

-Kevin Ballard
Previous: Jari AaltoNext: Junio C Hamano
Message 6 of 23 in “git-reset.txt: Use commit~1 notation over commit^”
  1. git-reset.txt: Use commit~1 notation over commit^jari.aalto@cante.net, Dec 1, 2010
  2. Drew NorthupDec 1, 2010
  3. Jari AaltoDec 1, 2010
  4. Kevin BallardDec 1, 2010
  5. Jari AaltoDec 1, 2010
  6. Kevin BallardDec 1, 2010
  7. Junio C HamanoDec 1, 2010
  8. Jari AaltoDec 1, 2010
  9. Andreas SchwabDec 2, 2010
  10. Jari AaltoDec 2, 2010
  11. Santi BéjarDec 1, 2010
  12. Jari AaltoDec 2, 2010
  13. Miles BaderDec 2, 2010
  14. Jari AaltoDec 2, 2010
  15. Drew NorthupDec 2, 2010
  16. Miles BaderDec 2, 2010
  17. jariDec 2, 2010
  18. Andreas SchwabDec 2, 2010
  19. Junio C HamanoDec 2, 2010
  20. Jeff KingDec 2, 2010
  21. Junio C HamanoDec 2, 2010
  22. Jeff KingDec 2, 2010
  23. Miles BaderDec 2, 2010

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.