Skip to content

Instantly share code, notes, and snippets.

Created December 8, 2015 19:27
Show Gist options
  • Save anonymous/d12c3f8cf8b5084d89db to your computer and use it in GitHub Desktop.
Save anonymous/d12c3f8cf8b5084d89db to your computer and use it in GitHub Desktop.
all the gits
alias gd="git diff | subl" # https://goo.gl/Inbsc2
alias ga="git add"
alias gbd="git branch -D"
alias gst="git status"
alias gca="git commit -a -m"
alias gm="git merge --no-ff"
alias gpt="git push --tags"
alias gp="git push"
alias gppt="git push && git push --tags"
alias grh="git reset --hard"
alias gri="git rebase -i"
alias gb="git branch"
alias gcl="git clone"
alias gcob="git checkout -b"
alias gco="git checkout"
alias gba="git branch -a"
alias gcp="git cherry-pick"
alias gl="git log --pretty='format:%Cgreen%h%Creset %an - %s' --graph"
alias gpom="git pull origin master"
alias gcd='cd "`git rev-parse --show-toplevel`"'
alias gpr="git pull-request"
alias grv="git remote -v"
alias gf="git fork; git remote rename origin upstream; git remote rename robdodson origin; git branch --set-upstream master origin/master"
alias gpu="git fetch origin -v; git fetch upstream -v; git merge upstream/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment