Skip to content

Instantly share code, notes, and snippets.

@brunobertolini
Last active January 22, 2020 17:26
Show Gist options
  • Save brunobertolini/35f1ca040b02930f9dced49b31343be0 to your computer and use it in GitHub Desktop.
Save brunobertolini/35f1ca040b02930f9dced49b31343be0 to your computer and use it in GitHub Desktop.
[alias]
k = !gitk --all &
dismiss = reset HEAD --hard
rollback = reset --soft HEAD~1
unstage = reset HEAD --
undo = checkout --
redo = commit --amend --no-edit
sane = remote prune origin
send = push origin $(git rev-parse --abbrev-ref HEAD)
l = log --graph --pretty=format:'%C(yellow)%h%Creset %Cgreen%cr %C(bold blue)%an%Creset - %s%C(red)%d%Creset' --abbrev-commit --max-count=30
lg = log --all --graph --decorate --oneline --abbrev-commit --max-count=30
st = status -sb
tags = tag -l
branches = branch -a
remotes = remote -v
co = checkout
cm = commit -m
acm = !git add . && git commit -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment