Skip to content

Instantly share code, notes, and snippets.

@tnrich
Created February 22, 2015 03:47
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 tnrich/6d625b13cb9c96209acb to your computer and use it in GitHub Desktop.
Save tnrich/6d625b13cb9c96209acb to your computer and use it in GitHub Desktop.
Useful git shell aliases. Put them in ~/.profile or ~/.bashrc or wherever you keep your aliases
#lists your last 20 branches in the order that you last commited to them
alias gbh='git for-each-ref --count=20 --sort=-committerdate refs/heads/ --format='\''%(refname:short)'\'''
alias gc='git checkout'
alias gcam='git commit -am '
alias gcb='git checkout -b '
alias gpuo='git push -u origin'
alias gs='git status -sb '
#need to npm install -g node-inspector and nodemon before using this one
alias debugApp='node-inspector & nodemon --debug app.js --remote'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment