This had been bugging me for a while:
# git pull origin mastergit: 'pull' is not a git command. See 'git --help'.Did you mean this? shell
I’d done my googly thang several times, and tried the few solutions suggested, to no avail.
One I’d probably seen mentioned before is setting the *nix environment variable.
Now, I’m not a full on sys-admin, and some bits I’ve just not really picked up, but this time I decided to do a little research into setting environment variables and give it a whack:
UNIX: Set Environment Variable [new window]
Yeah, ok, that’s actually piss-easy.
So, first find out your git exec path. This is the location of your git-core directory.
Directory find is a bit tedious, so I just did:
# locate git-core
Which gave a massive list of results, but in there I found my path – in my case /usr/local/libexec/git-core
So following the instructions for bash:
# export GIT_EXEC_PATH=/usr/local/libexec/git-core
I than ran
set to check the change had taken, and tried to pull again.
Okay kiddies, that’s the end of another adorable bedtime story, off to sleep now.