Skip to content

Instantly share code, notes, and snippets.

@acoshift
Last active March 14, 2020 23:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save acoshift/c2d9ef93a2757f445c9fa2f2c4db1017 to your computer and use it in GitHub Desktop.
Save acoshift/c2d9ef93a2757f445c9fa2f2c4db1017 to your computer and use it in GitHub Desktop.
.gitconfig [alias]
[alias]
cm = commit
co = checkout
p = push
pp = pull
tags = tag -l
b = branch
bb = branch -a
bd = branch -D
pod = push origin --delete
r = remote
rr = remote -v
rup = remote update -p
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
st = status -sb
ac = !git add -A && git commit
cc = !git branch --merged | grep -v '*' | xargs git branch -d
ss = stash
sa = stash apply
sd = stash drop
sl = stash list
kk = !git add -A && git commit && git push
kkk = !git add -A && git commit -m "update" && git push
fuck = reset --hard
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment