Archive
Old post. Originally published 6 September 2011 on the WordPress version of this site.
Preserved here for the search engines and the curious. Old me had opinions.
Git Bash Completion
After CakeFest 2011 I have been well and truly converted to using Git and GitHub for my source code management!
One thing that was frustrating me was the lack of Bash completion (basically hitting tab half way through a command for it to show you the completion or possible completions) I found a great solution thanks to a user on GitHub.
cd /tmp
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
git checkout v`git --version | awk '{print $3}'`
cp contrib/completion/git-completion.bash ~/.git-completion.bash
cd ~
rm -rf /tmp/git
echo -e "source ~/.git-completion.bash" >> .profile
You can check out the original blog post here.
Filed under Developer. No comments, on purpose.