Sid-Lais
By Sid-Lais

Git Installation

Git Installation

Git Installation

Before working on Git repositories it is advised to get a good knowledge of Git. Git is an open source version control system. It is easy to learn and has very fast performance irrespective of the system.

Steps to install Git

  1. Download and install Git for your system.

  2. After installation open a terminal in your system and write git to check proper installation.


If it returns something like this below then congrats. Git has been installed.

Set up Git credentials

  1. In the terminal/shell type:
1
2
3
4
5
git config --global user.name "Your name here"

git config --global user.email "your_email@example.com"

These will configure the git to set your name and email as default.

You can also add(optional):

1
2
3
4
5
git config --global color.ui true

git config --global core.editor emacs 

The first command is to enable colors in the terminal which are used to better understand the current state of the code.

The second command is to change the default text editor to emacs. You can change “emacs” to any other text editor desired.

For more information refer to GitHub Docs