Hi @ishita650,
It seems like you want to install git from source. You can use the apt package management tools to update your local package index. Afterwards, you can download and install the program:
sudo apt-get update
sudo apt-get install git
This will download and install git to your system.
If you want to build it from source, then it will be a little bit harder. First run:
sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
After you have installed the necessary dependencies, you can go ahead and get the version of git you want by visiting:
https://github.com/git/git
Click on Branch:master–> Tags and select the version you need. To download the version
wget https://github.com/git/git/archive/v2.8.1.zip -O git.zip
Unzip the file that you downloaded and move into the resulting directory by typing:
unzip git.zip
cd git-*
Now, you can make the package and install it by typing these two commands:
make prefix=/usr/local all
sudo make prefix=/usr/local install
Regards,
KDSys