Skip to content

Instantly share code, notes, and snippets.



Created Mar 14, 2017
What would you like to do?
git settings
default = simple
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ec = config --global -e
s = status
co = checkout
cob = checkout -b
up = pull --rebase
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
undo = reset HEAD~1 --mixed
amend = commit -a --amend
autosetuprebase = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment