Git commands auto completion

There is a handy bash script which can be sourced in your .profile to ensure git commands are auto completed. Execute the following code from your home dir:

#Goto your home directory
cd
#download the git completion bash script from github
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > git-completion.bash

Now open your .bashrc/.bash_profile or /etc/profile file and add the following line to the end of the file:

#Add this to the end of your /etc/profile
source ~/git-completion.bash

Restart your console and now you should be able to auto complete the git commands.