Git: 3 Rules to Follow When Working with Git

Zolboo Erdenebaatar
2 min readNov 25, 2020

Git is essentially a version control tool that tracks changes in a set of files, creating a history of a project that allows a team of developers to efficiently collaborate on a software project. When working with Git, there are a few rules to keep in mind to maximize its potential and avoid any hiccups or haphazard.

First and foremost, it is important to version everything, except for the generated files. This includes not only the precious source code (the heart of any software), but also documentation, web pages, FAQ, etc. This helps track the history of the development of the project more precisely and allows newcomers to learn the ropes of the projects more easily.

Second, it is important to keep the Git version browsable. This is not much of an issue with the wide implementation of Github, but if you are using a custom Git tracking software, it is essential to keep your Git page organized and understandable. The only reason that it is there is to provide a clear history of your project, so remember to keep it clear.

Third, always use branches to work on a certain task. If a large number of developers are working on the same project and the tasks need to be split into teams, this will help avoid bottlenecks that come with synchronizing information. In fact, even in small teams, it is a good practice to create a new branch to work on a feature as it will create a more clear history and build a helpful habit.

--

--