Configure Git completion on Ubuntu

Last updated on 29/11/2016

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