Skip to content

Instantly share code, notes, and snippets.

@draptik
Created March 14, 2017 21:51
Show Gist options
  • Save draptik/c46be98b2cbdd8ef26a793184bbabbcc to your computer and use it in GitHub Desktop.
Save draptik/c46be98b2cbdd8ef26a793184bbabbcc to your computer and use it in GitHub Desktop.
git settings
[push]
default = simple
[alias]
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
[branch]
autosetuprebase = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment