Skip to content

Instantly share code, notes, and snippets.

@adambabik
Last active February 5, 2016 11:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adambabik/dadc901d5381f014c51a to your computer and use it in GitHub Desktop.
Save adambabik/dadc901d5381f014c51a to your computer and use it in GitHub Desktop.
Favourite git aliases
[alias]
l = log --graph --full-history --all --color \
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
s = status
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
co = checkout
cob = checkout -b
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
wip = !git add -u && git commit -m "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
@adambabik
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment