Member-only story
Good Commit vs Bad Commit: The 5 Commandments of Git Bible
If you are accustomed to the world of software development, chances are you have heard of the term Git
. Git
is the de-facto version control system - a fancy term for a tool that helps you keep track of all the changes made to a project & enables multiple developers to collaborate on a single project.
Efficient use of Git
is a necessity for anyone in the realm of tech!
What are commits?
One of the most commonly used features of Git
is the commit
feature, which creates & stores a snapshot of the project at a particular point in time, allowing users to revert
back to that snapshot at any point in the future. Commits
are usually accompanied by a message that describes the changes made in that commit
.
In this article, we will go through the best practices of creating a commit
, which will help you look like a pro to anyone checking out your projects
5 Commandments of Git Commits
Written down in the Holy Git Bible, these commandments are the key to creating good commits
& maintaining a clean git history: