What works fine for me (including git stash
) is to clone the git repository for example. from:
cd git clone git://github.com/gitster/git.git cd git make
(I previously installed build dependencies with sudo apt-get build-dep git
, which will work with a recent Debian-based distribution - otherwise, if you get a build error, you just need to install the w20> build dependencies with any mechanism usually use.)
Then you can call this git with:
$ export GIT_EXEC_PATH=~/git/ $ ~/git/git --version git version 1.7.7.rc0.72.g4b5ea
... or using ~/git/git --exec-path=/home/mark/git
instead of the environment variable.
You can move the constructed source tree anywhere, and it still works, for example:
$ mv ~/git ~/tmp/ $ export GIT_EXEC_PATH=~/tmp/git/ $ ~/tmp/git/git --version git version 1.7.7.rc0.72.g4b5ea
source share