Skip to content

Instantly share code, notes, and snippets.

@avivey
Last active September 5, 2022 16:25
Show Gist options
  • 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