Skip to content

Instantly share code, notes, and snippets.

@mikemanger
Created September 19, 2013 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemanger/6621850 to your computer and use it in GitHub Desktop.
Save mikemanger/6621850 to your computer and use it in GitHub Desktop.
I always type `git branches` instead of `git branch` to list my branches, copy this to your .bashrc
# git function for branches
git() { if [[ $@ == "branches" ]]; then command git branch | more; else command git "$@"; fi; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment