Created
August 3, 2020 13:23
-
-
Save eclectic-coding/7510cf0771cae53f021f938549f027dc to your computer and use it in GitHub Desktop.
Current gitconfig aliases
This file contains hidden or 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 | |
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