Git Tips & Tricks

Git is an absolutely amazing source code control system – I use it for everything – from work projects, to being embedded in my own software, even for things as basic as shopping lists!

It is however rife with subtitles and traps.

This series (not very originally named I agree!) aims to be a place to collect my own personal notes and comments.

To make tests easier, all of the examples use a custom Docker image with Git preinstalled located at

Check you can run all the examples by running the following command in your terminal:

docker run git --version

You should have the following line displayed:

git version 2.26.2