How to enable auto complete for git commands and branches on Mac OSX terminal / Command line

GIT and Bash Logos

If you want to enable tab auto complete at the command line on Mac OSX terminal, there is a handy auto-completion script you can use. https://github.com/git/git/blob/master/contrib/completion/git-completion.bash Using git-completion script to enable auto complete for GIT commands Download and save the git-completion script to your home directory curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash Then open the .bash_profile file