Configure Git completion on Ubuntu

Last updated on 22/04/2020

Update: There is no reason not to use Oh My ZSH which is going to give you the same experience but much better.

Tested with Ubuntu 14.04

  • Locate your git completion script. ( In Ubuntu it's located at /usr/share/bash-completion/completions/git )
  • Add the following to your ~/.bash
    source /usr/share/bash-completion/completions/git
  • Refresh env variables
    source ~/.bashrc