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

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.

Using git-completion script to enable auto complete for GIT commands Download and save the git-completion script to your home directory

Then open the .bash_profile file in your home