Skip to content

Instantly share code, notes, and snippets.

@SirkleZero
Last active April 14, 2018 22:10
Show Gist options
  • Save SirkleZero/6458110 to your computer and use it in GitHub Desktop.
Save SirkleZero/6458110 to your computer and use it in GitHub Desktop.
A collection of useful Git aliases
[alias]
ci = commit
br = branch
co = checkout
df = diff
st = status -b -s
sc = commit -S -m
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
testmerge = merge --no-commit --no-ff
unstage = reset HEAD
startover = !git reset --hard HEAD && git clean -f -d -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment