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

Re: most commonly used git commands?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 25, 2007, 07:51 UTC
Message-ID
<Pine.LNX.4.64.0706250846200.4059@racer.site>
In-Reply-To
<20070625071752.GB15343@mellanox.co.il>
Hi,
On Mon, 25 Jun 2007, Michael S. Tsirkin wrote:
Show 5 quoted lines
> Quoting Junio C Hamano <gitster@pobox.com>:
>
> > I think "add" deserves to be there, I am not sure "apply" is.
> 
> git add is supposed to be rare, no?
No.
Show 10 quoted lines
> That's why git commit lists file additions/removals ...
> 
> My list is typically
> git checkout
> git commit
> git pull
> git push
> git rebase
> git reset
> git update-index

git update-index is really not user-friendly. That is why we have "git add". It is commonly used as a porcelain _instead of_ update-index.

FWIW your list is lacking log and diff, the two commands which are my top two. I do not use rebase all that often (before --interactive, that is). status, grep, mv, gc, show and branch are others I use quite often (although not as much as log and diff)

Ciao, Dscho

Previous: Josh TriplettNext: Alex Riesen
Message 7 of 26 in “most commonly used git commands?”
  1. Michael S. TsirkinJun 25, 2007
  2. Junio C HamanoJun 25, 2007
  3. Michael S. TsirkinJun 25, 2007
  4. Junio C HamanoJun 25, 2007
  5. Martin LanghoffJun 28, 2007
  6. Josh TriplettJun 28, 2007
  7. Johannes SchindelinJun 25, 2007
  8. Alex RiesenJun 28, 2007
  9. Johannes SchindelinJun 28, 2007
  10. Johannes SixtJun 28, 2007
  11. Johannes SchindelinJun 28, 2007
  12. Johannes SixtJun 28, 2007
  13. Johannes SixtJun 28, 2007
  14. git add: respect core.filemode even with unmerged entries in the indexJohannes Schindelin, Jun 28, 2007
  15. Johannes SixtJun 29, 2007
  16. Johannes SchindelinJun 29, 2007
  17. Junio C HamanoJun 29, 2007
  18. git add: respect core.filemode with unmerged entriesJohannes Schindelin, Jun 29, 2007
  19. Junio C HamanoJun 29, 2007
  20. Johannes SchindelinJun 29, 2007
  21. Alex RiesenJun 30, 2007
  22. Johannes SchindelinJun 30, 2007
  23. Alex RiesenJun 30, 2007
  24. Jan HudecJul 1, 2007
  25. Alex RiesenJul 1, 2007
  26. Josh TriplettJun 28, 2007

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.