Last active
March 1, 2017 15:54
-
-
Save matthewhall/dc615e74b491bb7734bf to your computer and use it in GitHub Desktop.
Git aliases.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gi="git init" | |
alias gci="git commit" | |
alias gcim="git commit -m" | |
alias gciam="git commit --amend -m" | |
alias gco="git checkout" | |
alias gco-="git checkout --" | |
alias gcob="git checkout -b" | |
alias gcod="git checkout dev" | |
alias gcom="git checkout master" | |
alias gb="git branch" | |
alias gbd="git branch -d" | |
alias gdf="git diff" | |
alias gdfc="git diff --cached" | |
alias ga="git add" | |
alias gap="git add -p" | |
alias gaa="git add . && git status" | |
alias gm="git merge" | |
alias gmnff="git merge --no-ff" | |
alias gmd="git merge dev" | |
alias gmm="git merge master" | |
alias grb="git rebase" | |
alias gst="git status" | |
alias gsa="git stash" | |
alias gsaa="git stash apply" | |
alias gsap="git stash pop" | |
alias gsas="git stash save" | |
alias gsal="git stash list" | |
alias glg="git log -p" | |
alias gps="git push" | |
alias gpso="git push origin" | |
alias gpl="git pull" | |
alias gplo="git pull origin" | |
alias gr="git reset" | |
alias grm="git rm" | |
alias grmr="git rm -r" | |
alias greview="git log --patch --no-merges --reverse master.." | |
alias gundolast="git reset --soft 'HEAD^'" | |
alias grecent="git for-each-ref --count=20 --sort=-committerdate --format='%1B[0;35m%(committerdate:short)%1B[m | %(refname:short) %1B[0;32m(%(authorname))%1B[m'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment