Last Updated: February 25, 2016
·
203
· markhu

git-commands dashed in OSX

If you like the "dashed" git-shell commands (for tab-completion, etc.) and don't find them in your path, try locating them on your workstation and either add that dir to your path, or symlink the aliases like so:

$ sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git /usr/local/bin/

$ for x in /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-*; do sudo ln -s $x /usr/local/bin/ ; done

Many of them are simply symlinks to git but some are shell scripts, or symlinks to some other binaries.