I'm currently trying to install multiple Git versions on OS X for testing purposes. After downloading the OS X installer bundle from git-scm.com (which installs to /usr/local/git
), I move it to a different location, e.g. ~/git-1.7.11.1
or ~/git-1.8.1
. Unfortunately, Git does not like this move:
$ ~/git-1.7.11.1/bin/git fetch
fatal: Unable to find remote helper for 'https'
or even worse:
$ ~/git-1.7.11.1/bin/git pull
git: 'pull' is not a git command. See 'git --help'.
Did you mean this?
shell
When I set the path, it also does not work:
$ export PATH=~/git-1.7.11.1/bin:$PATH
$ which git
/Users/xxx/git-1.7.11.1/bin/git
$ git pull
git: 'pull' is not a git command. See 'git --help'.
Did you mean this?
shell
Is there anything I need to change in the Git bundles, too, to make them portable (aka running at each location)?