Install Git & Configure - Git Tutorial - 2

Install Git & Configure - Git Tutorial - 2

Git is a distributed version control system. In this tutorial, I’m going to explain to you what Git is and how you can quickly get started with it.  Many of you may have heard of Git but never understood what it exactly means and how to use it!!!  You have stumbled upon the right place.

Get Git Integrity :

  • Everything is done via checksum. So its impossible to make changes without git knowing it.
  • It store everything not by file name, but by a hash code.
  •  It uses SHA-1 hash 
  • The SHA-1 hash is a 40 char hexadecimal character. (Example :2fd4e1c67a2d28fced849ee1bb76e7391b93eb12)

Most important three stage :

  • Modified : Changed the file but not have to committed to database.
  • Staged : Marked a modified file in its current version to go into next commit.
  • Commit : Data safely stored in your database 

Install Git :

If you are on Linux and RPM based distribution such as RHEL, Fedora or Centos then you can use  dnf 

$ sudo dnf install git-all

If you are on Debian based distribution such as Ubuntu or Linux Mint, then use  apt 

$ sudo apt install git-all

If you are on macOS then run this code

$ git --version

If you don’t have it installed already, it will prompt you to install it.


If you are on Windows then download & install the Git package from

After install the Git check its version by Terminal on Linux/Mac and for Windows use Command Prompt. Use these below command

$ git --version

You will see output like this..



If you see a output like this, then Git properly installed in your machine. Now let's go to set the git configrations.

Git Configuration : 

The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:

$ git config --global "Talha F."
$ git config --global [email protected]

Checking Your Settings :

$ git config --list


You can also check what Git thinks a specific key’s value is by typing git config <key>:

$ git config

You set up your git configuration successfully.

Enough talk, lets go to create a project with Git on next tutorial.

Hashtag :
Share On :

Except where otherwise noted, content on this site is licensed under a CC BY-NC-SA 4.0 .