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

Re: Why is it important to learn git?

From
Andreas Ericsson <ae@op5.se>
Date
Aug 4, 2009, 14:09 UTC
Message-ID
<4A784116.2050508@op5.se>
In-Reply-To
<200907220952.27385.trast@student.ethz.ch>
Thomas Rast wrote:
Show 9 quoted lines
> Tim Harper wrote:
>> How has mastering the advanced features of git helped you to be a
>> better programmer?
> 
> I came from SVN, and I guess the most important change for me was:
> 
>   Learning to make nice, reviewable, working, one-change-per-revision
>   commits.
> 

Seconded. During the CVS days, noone bothered about history, but with git a it's a veritable goldmine of important information, so it's important to keep it clean with minimal changesets.

One of our developers was very sloppy about this until he ended up with a bisection run landing him on a commit that fixed no less than seven different issues. He spent four days debugging it and finally had to resort to breaking the issues up and creating the commits as they should have been on a temporary side-branch and then bisecting that side-branch. Having done that, he spotted the error in about 15 minutes. After some swearing, he finally saw the light. He's actually a happier person now, since bugs that take a long time to solve upset him quite enormously and now he never runs into any :-)

Apart from that, the various ways of cooperating over large distances (easy branching + merging, patch sending/applying utilities) are a huge benefit for us.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Jeff KingNext: Scott Chacon
Message 6 of 10 in “Why is it important to learn git?”
  1. Tim HarperJul 22, 2009
  2. Thomas RastJul 22, 2009
  3. Sverre RabbelierJul 22, 2009
  4. Jakub NarebskiJul 22, 2009
  5. Jeff KingJul 23, 2009
  6. Andreas EricssonAug 4, 2009
  7. Scott ChaconJul 22, 2009
  8. Dmitry PotapovJul 22, 2009
  9. Jakub NarebskiJul 22, 2009
  10. Allan KellyJul 22, 2009

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.