Skip to content

Instantly share code, notes, and snippets.

@jgtaveras
Created April 6, 2019 15:52
Show Gist options
  • Save jgtaveras/30937f45d773c16efeb82bb4d0ba69b6 to your computer and use it in GitHub Desktop.
Save jgtaveras/30937f45d773c16efeb82bb4d0ba69b6 to your computer and use it in GitHub Desktop.
personal git aliases
[alias]
st = status
co = checkout
stashall = stash --include-untracked
aa = add --all
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
nuke = reset --hard HEAD
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
wip = commit -am "WIP"
save = !git add -A && git commit -m 'SAVEPOINT'
amend = commit -a --amend
undo = reset HEAD~1 --mixed
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment