Git Bash Auto-Completion on Mac

Last modified: 
Thursday, August 6th, 2015
Topics: 
GitOSX

Your OS X version of Git may not come with the Git Bash autocompletion scripts. You can add them as follows.

  1. Download the script to your home folder.
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash 
\ -o ~/git-completion.bash
  1. Add the following to your ~/.bash_profile:
if [ -f ~/.git-completion.bash ]; then
    source ~/.git-completion.bash
fi

References


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.