Skip to content
Git Bash Completion
Latest commit d1d2502 May 23, 2014 @markgandolfo Merge pull request #2 from fvalverd/master
add: show changes like current branch
Failed to load latest commit information.
README.markdown initial commit Apr 7, 2009
git-completion.bash fix: folder without git May 18, 2014


Git Completion

A bash completion script for git.

To install on linux

Simply copy git-completion.bash into /etc/bash_completion.d/
That should run automatically.. if not, in your .bashrc file add the following line
. /etc/bash_completion.d/git-completion.bash

To install on MacOSX

You'll need to create the bash completion directory first.

mkdir /opt/local/etc/bash_completion/
cp git-completion.bash /opt/local/etc/bash_completion/

The coolness

When you git<tab><tab>

    add                 cherry              diff                instaweb            rebase              show-ref
    am                  cherry-pick         fast-export         log                 relink              st
    annotate            ci                  fetch               lost-found          remote              stash
    apply               citool              filter-branch       ls-files            repack              status
    archive             clean               format-patch        ls-remote           request-pull        submodule
    bisect              clone               fsck                ls-tree             reset               svnimport
    blame               co                  gc                  merge               revert              tag
    br                  commit              get-tar-commit-id   mergetool           rm                  up
    branch              config              grep                mv                  send-email          var
    bundle              convert-objects     gui                 name-rev            shortlog            verify-pack
    checkout            count-objects       imap-send           pull                show                whatchanged
    checkout-index      describe            init                push                show-branch

Something went wrong with that request. Please try again.