Skip to content

Instantly share code, notes, and snippets.

@tuannat
Forked from SirkleZero/git-aliases.gitconfig
Created May 22, 2014 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuannat/845cec71f33da9901283 to your computer and use it in GitHub Desktop.
Save tuannat/845cec71f33da9901283 to your computer and use it in GitHub Desktop.
[alias]
ci = commit
br = branch
co = checkout
df = diff
st = status -b -s
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