Skip to content

Instantly share code, notes, and snippets.

@lamdor
Created August 24, 2008 14:42
Show Gist options
  • Save lamdor/6986 to your computer and use it in GitHub Desktop.
Save lamdor/6986 to your computer and use it in GitHub Desktop.
Here's the steps to get git bash completion:
Put the attached file to some where in your home directory. I usually put it in "~/.bash.d/completions". It can also be downloaded at
http://git.kernel.org/?p=git/git.git;a=blob_plain;f=contrib/completion/git-completion.bash;h=89858c237eaca5a5fb7e89d716577c0ef84dd086 . It's actualy located in git's git repository under contrib/completions.
But anyways, then just add line
source "/Users/luke/.bash.d/completions/git-completion.bash"
to your ~/.bash_login . The file part should be different.
But that's it. It should autocomplete just about everything (options, branches, you name it).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment