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