Member-only story
Git cheat sheet required for every developer
5 min readNov 24, 2021
Git is one of the most popular and widely used version control systems. We use git on a day-to-day basis and are familiar with the most common commands and features. This article describes the commands and features which can make a developer’s life easier.
Before we begin, I write one line definitions of the terminologies used in git:
- Repository: A collection of files of a project or module is a repository (or repo in short). They are of two types:
a. Local: The one which is on the developer’s system.
b. Remote: The one which is on the Github server. - Branch: Consider the repository as a tree. A branch is independent code from other branch. The branches help you to divide the code or arrange the code for different purposes (usually).
- Commit: A commit represents the version of the code. For example if I have a code written of 10 lines and I add 2 more lines to it I will perform a commit and there would be 2 revisions of the code. With the help of this I can keep track of what I changed and when and also have the capability to revert my changes.
- Pull Requests: These are the requests created by a person while merging the code from one branch to another branch. These can be reviewed by other people as well.