Good Git Guides

Over the years that I have been using Git I gathered quite a few useful links. As at work we made the switch from SVN to Git recently it seems to be the perfect time to finally share some of these links on my blog. There are, of course, the man pages, the “official” book and reference. These are undoubtedly good resources but they are very thorough and therefore a bit dry and more suitable as a reference to learn more about the details of a specific topic. This article rather focuses on overviews, best practices and tips about Git which are not necessarily the top links for a search on Git documentation.

Let us begin with some introductory material.

The following are more complete Git overviews.

These links are about solving or understanding specific yet typical Git use cases.

As Git is very powerful but also flexible there is a need to understand the various possible workflows achievable with this tool.

In my opinion, one should try to keep the amount of long lived branches to a minimum and, in general, follow my last name. I personally like to keep the default master as the canonical branch to have the latest integrations or changes but still be deployable. At the end of the day, the best Git workflow really depends on the type of project and there is no absolute best. Nonetheless, the following is my personal favorite when applicable. 23

To deeply understand Git and come up with solutions (from first principles) for a unique problem on has it can be very helpful to understand Git’s inner workings.

  1. This one’s especially great but I think you’ll only appreciate it after having worked with git for some time. 

  2. For example, Git Flow is a succesful workflow for certain types of projects. Feature Toggles together with a simpler Git model can be an alternative for some projects. 

  3. There are many other valid branch naming schemes, of course, and at the end of the day these names are nothing but smoke and mirrors. You probably still need to know the specific, employed workflow of a project to make sense of the branches. 

  4. The resource is so good it’s listed twice :). 

Published: 10.01.2015 Last modified: 08.08.2015
Comment? Mail or tweet me.