Last Updated: February 25, 2016
·
464
· ptgoetz

Setup git command line completion on OSX

Run the following script:

#! /bin/bash
git_version=(`git --version`)
wget https://raw.github.com/git/git/v${git_version[2]}/contrib/completion/git-completion.bash -O ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bash_profile

Then logout/login.