Skip to content

Instantly share code, notes, and snippets.

@avivey
Last active September 5, 2022 16:25
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save avivey/3890330 to your computer and use it in GitHub Desktop.
Save avivey/3890330 to your computer and use it in GitHub Desktop.
install git from source (For Ubuntu)
cd /tmp
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-*
sudo apt-get install make autoconf libcurl4-gnutls-dev gettext gcc zlib1g-dev
make configure
./configure --prefix=/usr --without-tcltk
make all
sudo make install
# For docs:
cd ..
git clone git://github.com/gitster/git-manpages.git
cd -
sudo make quick-install-man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment