Git intermediate
Image source: Wikimedia

Git intermediate

Are you unsure about the level of your Git skills? Or did you start using Git recently and would like some pointers on where to go next? I hope I will be able to help you in both cases.

It’s going to be subjective

I don’t know of any metrics that you can use to assess one’s level of any version control system, therefore this article will be heavily subjective. If you know everything I mention in this article then in my personal opinion you can claim you know Git on at least intermediate level. If you aim at higher level of understanding Git then I would suggest you eventually go through Git source code and hopefully contribute to the development.

This article assumes you have at least basic understanding of Git, if you are just starting with Git then please consider covering the basics first. It also assumes you are working with Git console (IDEs do not count!). Without further due let’s get to the fun parts!

Managing repositories and Git client

  • You know how to create and configure repository on a hosting service (github, gitlab, bitbucket etc.) of your choice
  • You know how to initiate a local repository and link it to the hosting service
  • You know what .gitignore is for, you know how to create one and how to exclude individual files, all files with a given extension and whole directories [1]
  • You know how to configure username and e-mail for your Git client [2]
  • You know how to setup ssh identification [3]
  • You know how to resolve merge conflicts [4]

Playing nicely with others

  • You know at least one Git workflow / branching model (it should be relevant to your organization/company etc.) My personal favourite is [5]
  • You know Git rebase and it’s interactive option [6]
  • You know the dangers of git push --force and know it’s a good idea to be super careful with it [7]. Bonus point if you know about git push --force-with-lease [8]

  • You know how to write a good commit message [9]

Using Git for debugging

  • You have an idea how to use git bisect [10]
  • You know how to use git blame and you know it’s not a tool for guilt tripping other developers [11]

Tools etc.

  • You know what Git hooks are [12]
  • You know how to efficiently use git diff between commits, branches, files staged for commit etc. [13]
  • You know what submodules are and how to efficiently use them [14]

Wrapping up

If you know all the concepts listed above then you know Git pretty well! The knowledge you have should be enough to easily get you going on most problems you will encounter when using Git. Of course you will find some challenging problems every now and then but with your Git super powers you will not make too much of a mess in your repositories.

It’s more than likely that I forgot to mention some important git skills and therefore I’m planning to update this


Mateusz Sadowski

Mateusz Sadowski
Robotics/Drones/Software developer

Livox Mid-40 LiDAR review

Recently I've been testing the performance of Livox Mid-40 LiDAR. This blog post contains my thoughts on using this sensor, it's performance and available ROS node. Continue reading

YDLIDAR X4 - ROS review

Published on January 09, 2019

1% For the Planet

Published on January 01, 2019