Balaji Vajjala's Blog

A DevOps Blog from Trenches

Git Productivity enhancements

If I haven’t told you yet, Git is awesome and yes I do most og the work from the command-line, so in order to make my life easier I did two things:

1
2
apt-get install bash-completion
wget https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -O /etc/bash_completion.d/git

Upon next login (or execute source /etc/bash_completion.d/git) right away and you have all the bash completion you need for git at your finger tips.

Another awesome script to make your life easier with git is git-prompt.sh which you can also include in your bash profile like so:

1
wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh

then add a line to ~/.profile sourcing it upon login shell, see header of git-prompt.sh for more details.