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

Git Gems

From
HWHilco Wijbenga <hilco.wijbenga@gmail.com>
Date
Nov 16, 2011, 23:18 UTC
Message-ID
<CAE1pOi1gyshz_502NQvLNAByfwiYXW2fzA+EnGKz8tuFrCpkxg@mail.gmail.com>
Hi all,

Just today, I found out about 'git add -p'. I had never even thought of this but, now that I know, I can't imagine life without it. :-) Actually, it's a bit scary to note that the Git devs apparently aren't just telepathic but they can read my thoughts even before I think them. ;-)

All kidding aside, I'm starting to wonder which other Git Gems I don't know about. For me, the list of Git Gems would include Git's Bash command line prompt, 'git add -p', 'git rebase', 'git commit --amend', and 'git-new-workdir'. I realize there are plenty of books and such out there but I'm really just looking for a list of Git commands and/or options that are worth looking into. Finding out more about a particular command/script/option is easy, realizing that a particular one is the one you need is not. Especially, if you don't even know you have a problem.

As an example, 'git rebase' didn't really seem useful until I understood (well, more or less) what it did. Until then, I just naively assumed that merge commits and non-linear history were something you simply had to live with. I'm guessing that, like me, a lot of people come to Git with quite a few assumptions and preconceived notions due to their exposure to other SCM tools. :-(

Cheers, Hilco

Next: Neal Kreitzinger
Message 1 of 3 in “Git Gems”
  1. Hilco WijbengaNov 16, 2011
  2. Neal KreitzingerNov 18, 2011
  3. Ramkumar RamachandraNov 18, 2011

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.