Skip to content

Instantly share code, notes, and snippets.

@erikkaplun
Created October 5, 2014 15:59
Show Gist options
  • Save erikkaplun/3bcece37540e1801b962 to your computer and use it in GitHub Desktop.
Save erikkaplun/3bcece37540e1801b962 to your computer and use it in GitHub Desktop.
#####################
# git
#####################
alias g=git
alias s='g status'
alias gs='g status'
alias a='g add'
alias ga='g add'
alias gap='ga -p'
alias gf='g fetch'
alias gr='g rebase origin/master master'
alias gp='g push'
alias gb='g branch'
# diffing
alias d='g diff'
alias gd='g diff'
alias gds='g diff --staged'
# committing
alias gcm='g commit'
alias gcmam='g commit --amend -C HEAD'
alias gwip='g commit -m wip'
# logging
alias gl='g log --pretty=format:"%Cblue%h%Creset%x09%an%x09 %ar%x09%s" --graph'
alias gin='gl ..origin' # [w]hat's new
alias gout='gl origin..' # what's [u]npushed
# checkout
alias gc='g checkout'
alias gcb='gc -b'
# stashing
alias gsta='g stash'
alias gstp='g stash pop'
# git svn
alias gdc='g svn dcommit'
alias gsr='g svn rebase'
# END GIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment