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

Re: Git User's Survey 2008 partial summary, part 4 - how do we use Git

From
Andreas Ericsson <ae@op5.se>
Date
Sep 7, 2008, 08:31 UTC
Message-ID
<48C39145.9020709@op5.se>
In-Reply-To
<200809070017.09463.jnareb@gmail.com>
Jakub Narebski wrote:
> 
> Analysis: strangely "git add + git commit" is slightly more used than
> "git commit -a"; I would suspect that "git commit -a" would dominate a
> bit over other forms of committing.

I believe people have finally gotten to grasp with the index. Besides, those answers are probably a bit skewed, as people that use git as just a faster and better cvs/svn aren't likely to be those who answer the survey.

Show 5 quoted lines
>  What is for me more suprising is
> that "git commit <file>..." has such large presence in often used
> commands; I would think that it should be mostly used as 'sometimes'
> command.
> 

I know myself and most others where I work use it as a 'fixup' command. One commit is done, the second is being staged (git add or git add -i), while testing reveals some silly bug in one of the files from the last commit. Assuming that file isn't touched again, it's easy to fix up using "git commit --amend <file>", as that automatically sets up a new index so that the staged changes remain staged.

The alternative would be to do a mixed reset, git add <file>, git commit --amend. Not so sexy.

Show 22 quoted lines
> 
> Top 10 rarely used commands
> 
> ===================================
> Command + options      | rarely [%]
> -----------------------------------
> git revert             | 31% (454)
> git pull <URL> <ref>   | 22% (348)
> git blame              | 21% (328)
> git fetch [<options>]  | 20% (313)
> git rebase             | 20% (291)
> git remote             | 20% (289)
> git merge              | 18% (286)
> git apply              | 18% (284)
> git pull --rebase      | 18% (283)
> 
> Analysis: "git pull <URL> <ref>", direct pull without using
> remote-tracking branches, is quite popular among rarely used
> commands.  Strange that "git pull ---rebase" is among rarely
> used; I would think it is question of workflow... but perhaps
> rarely encountered workflow.
> 

Perhaps many who use it don't know that they are. The "git sync" alias is much in use where I work. It's basically just a "git pull --rebase && git push". As it was suggested on the mailing list and also listed in some tutorial somewhere (don't know where), I can imagine quite a lot of people using it without realising it.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Jakub NarebskiNext: Jakub Narebski
Message 18 of 33 in “Git User's Survey 2008 partial summary”
  1. Jakub NarebskiSep 3, 2008
  2. Shawn O. PearceSep 3, 2008
  3. H.Merijn BrandSep 3, 2008
  4. Felipe ContrerasSep 3, 2008
  5. David AguilarSep 4, 2008
  6. Jan HudecSep 5, 2008
  7. David AguilarSep 6, 2008
  8. David BrownSep 3, 2008
  9. Scott ChaconSep 3, 2008
  10. Jakub NarebskiSep 3, 2008
  11. Jakub NarebskiSep 4, 2008
  12. Git User's Survey 2008 partial summary, part 3Jakub Narebski, Sep 6, 2008
  13. Shawn O. PearceSep 6, 2008
  14. Andreas EricssonSep 6, 2008
  15. Jonas FonsecaSep 7, 2008
  16. Shawn O. PearceSep 7, 2008
  17. Git User's Survey 2008 partial summary, part 4 - how do we use GitJakub Narebski, Sep 6, 2008
  18. Andreas EricssonSep 7, 2008
  19. Jakub NarebskiSep 7, 2008
  20. Git User's Survey 2008 partial summary, part 5 - other SCMJakub Narebski, Sep 11, 2008
  21. Anatol PomozovSep 11, 2008
  22. Jeff KingSep 11, 2008
  23. david@lang.hmSep 11, 2008
  24. Jakub NarebskiSep 12, 2008
  25. david@lang.hmSep 13, 2008
  26. Jakub NarebskiSep 13, 2008
  27. Mark BrownSep 15, 2008
  28. Nguyen Thai Ngoc DuySep 14, 2008
  29. Jakub NarebskiSep 14, 2008
  30. david@lang.hmSep 15, 2008
  31. Andreas EricssonSep 15, 2008
  32. Jakub NarebskiSep 16, 2008
  33. Jakub NarebskiSep 11, 2008

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.