Skip to content

Instantly share code, notes, and snippets.

@dstarh
Created June 19, 2012 02:22
Show Gist options
  • Save dstarh/2951959 to your computer and use it in GitHub Desktop.
Save dstarh/2951959 to your computer and use it in GitHub Desktop.
alias -p | grep git
alias __git_find_on_cmdline='__git_find_subcommand'
alias g='git'
alias ga='git add'
alias gall='git add .'
alias gb='git branch'
alias gba='git branch -a'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gci='git commit --interactive'
alias gcl='git clone'
alias gco='git checkout'
alias gcount='git shortlog -sn'
alias gcp='git cherry-pick'
alias gd='git diff | mate'
alias gdel='git branch -D'
alias gdv='git diff -w "$@" | vim -R -'
alias get='git'
alias gexport='git archive --format zip --output'
alias gl='git pull'
alias gll='git log --graph --pretty=oneline --abbrev-commit'
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master'
alias gp='git push'
alias gpo='git push origin'
alias gpod='git push origin develop'
alias gs='git status'
alias gss='git status -s'
alias gst='git status'
alias gup='git fetch && git rebase'
alias undocommit='git reset --soft HEAD^'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment