Skip to content

Instantly share code, notes, and snippets.

@ilyamt-tandemg
Forked from avivey/download and build git
Created September 5, 2022 16:25
Show Gist options
  • Select an option

  • Save ilyamt-tandemg/2b1d575314822168dd9723a04a5bb667 to your computer and use it in GitHub Desktop.

Select an option

Save ilyamt-tandemg/2b1d575314822168dd9723a04a5bb667 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