1 min read
Git branch typing completion and other useful stuff
Recently I was looking a way to have auto completion with git when checking out a branch. The solution was kind of obvious. The github git mirror repository has a folder containing experimental tools. One of these tools is a shell scripts that enables completion for various git sub commands. Exactly what I was looking for.
If you also want to make use of this feature, you can download the script with the command below:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
Scripts for other shells are available.
If you are bash user like I am, you can enable the completion script in your bash profile with the following command:
test -f ~/.git-completion.bash && . $_
Improve this page
Show statistic for this page