Last Updated: February 25, 2016
· hatemmahmoud

Git Autocompletion in OS X Terminal

To get autocompletion of Git commands in your OS X Terminal, download git-completion.bash ( to somewhere (e.g. ~/.git-completion.bash) and update your .bash_profile:

$ echo 'source ~/.git-completion.bash' >> ~/.bash_profile

Bonus: To show the current Git branch in your prompt, check (

Now, restart your Terminal and enjoy!

Filed Under