Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Current gitconfig aliases
[alias]
co = checkout
cob = checkout -b
com = checkout master
br = branch
brd = branch -d
dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
st = status -sb
aa = add -A .
cm = commit
aacm = !git add -A . && git commit
acp = !git add -A . && git commit && git push
cp = cherry-pick
amend = commit --amend -m
dev = !git checkout dev && git pull origin dev
staging = !git checkout staging && git pull origin staging
master = !git checkout master && git pull origin
fm = fetch upstream
mup = git merge upstream/master
po = push origin
pod = push origin dev
pos = push origin staging
pom = push origin master
poh = push origin HEAD
plo = pull origin
plod = pull origin dev
plos = pull origin staging
plom = pull origin master
ploh = pull origin HEAD
unstage = reset --soft HEAD^
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
f = "!git ls-files | grep -i"
gr = grep -Ii
la = "!git config -l | grep alias | cut -c 7-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.