Find us on facebook

Jun 2, 2015

Install Git on Ubuntu

sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
wget https://github.com/git/git/archive/v1.9.2.zip -O git.zip (You can get latest version from git)
unzip git.zip
cd git-*
make prefix=/usr/local all
sudo make prefix=/usr/local install

if you want to upgrade to a later version, you can simply clone the repository and then build and install:
git clone https://github.com/git/git.git

Following commands will rebuild and reinstall the package
make prefix=/usr/local all
sudo make prefix=/usr/local install

git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"

No comments:

Post a Comment