-
-
Save yaravind/2d0597592ba6d0b16aff4e759c2b9542 to your computer and use it in GitHub Desktop.
My current .gitconfig 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] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brD = branch -D | |
merged = branch --merged | |
dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
st = status | |
aa = add -A . | |
cm = commit -m | |
aacm = !git add -A . && git commit -m | |
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 | |
po = push origin | |
pod = push origin dev | |
pos = push origin staging | |
pom = push origin master | |
poh = push origin HEAD | |
pogm = !git push origin gh-pages && git checkout master && git pull origin master && git rebase gh-pages && git push origin master && git checkout gh-pages | |
pomg = !git push origin master && git checkout gh-pages && git pull origin gh-pages && git rebase master && git push origin gh-pages && git checkout master | |
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