Member-only story

Git cheat sheet required for every developer

Neelesh Arora
5 min readNov 24, 2021

--

Photo by Roman Synkevych on Unsplash

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:

  1. 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.
  2. 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).
  3. 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.
  4. 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.

--

--

Neelesh Arora
Neelesh Arora

Written by Neelesh Arora

Senior Software Engineer | Back-end Developer

Responses (1)