Last Updated: March 06, 2019
· davefp

Get yourself some git completion on OSX

Git has some really nice autocomplete features, but they're not installed by default in OSX. For shame!

Fix this by grabbing this shell script:

curl -o ~/.git-completion.bash

Then load it in your bash profile:

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash

Bam! Now you have auto-complete for git commands and branch names.

Sourced from this handy blog post:

2 Responses
Add your response


Why don't you use Oh My Zsh? It provides git auto-complete, git alias and a very good bunch of plugins.

over 1 year ago ·

My zsh also breaks cURL and some other very useful features and hides away the stuff it overwrites, no transparency.

over 1 year ago ·