I have previously posted how to compile git on Ubuntu but while using git I wanted to consulte the manual to get information about some commands and git help didn’t work. It seems that you have to manually specify when compiling that you want to have documentation included too.
Here’s how to do that. Go to the directory where you have unarchived git sources and type:
sudo make install-doc
You can also combine them when you compile git:
make all doc
sudo make install install-doc
Updated with the latest git release 126.96.36.199
I am using Ubuntu 7.10 Gutsy and use git a lot, the latest version in gutsy repository is 188.8.131.52 but the latest version of Git is 184.108.40.206 so here’s a quick tip for compiling git.
First remove git if you have installed it from repositories:
sudo apt-get remove git git-svn
Then go into a temporary folder where you will download and compile git:
sudo apt-get build-dep git-core
tar xjf git-220.127.116.11.tar.bz2
sudo make install
If you have a dual core CPU and want to use them both to compile faster use make -j2 instead of make
Now enjoy your hand compiled git 🙂
PS: For git gui I had to to install tk (sudo apt-get install tk).