Understand git in 4min!

Mohammad Obaidullah Tusher
4 min readJul 10, 2021

In this blog, I have just created a cheatsheet-like git commands for using basic git in the projects, I have seen many people struggling with git for the first time while they implement git on the projects. In this blog, I have tried to simplify the procedure of using git.

To check git is installed or not, if not please install the git first.

git --version

Manual Install(Ubuntu):

Manual Install(Linux, macOS, Windows):

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

To create a project directory.

mkdir myproject

To go to your projects’ root directory.

cd /path/to/my/codebase/myproject

GIT CONFIG:

Define the author name to be used for all commits by the current user.

git config — global user.name <name>

Define the author email to be used for all commits by the current user

git config — global

--

--