Skip to content

Instantly share code, notes, and snippets.

@gwing33
Created January 21, 2012 02:22
Show Gist options
  • Save gwing33/1650826 to your computer and use it in GitHub Desktop.
Save gwing33/1650826 to your computer and use it in GitHub Desktop.
My git shortcuts in my ~/.bash_profile
# Git Shortcuts
alias gs='git status'
alias gst='git status -sb'
alias ga='git add'
alias gau='git add -u' # Removes deleted files
alias gp='git pull'
alias gpu='git push'
alias gc='git commit -v'
alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment
alias gco='git checkout'
alias gl='git log --oneline'
@theBiker89
Copy link

I usually use also:
alias tree='git log --graph --decorate --oneline'
alias revert='git checkout --'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment