Skip to content

Instantly share code, notes, and snippets.

@ddre54
Created April 13, 2014 01:09
Show Gist options
  • Save ddre54/10564369 to your computer and use it in GitHub Desktop.
Save ddre54/10564369 to your computer and use it in GitHub Desktop.
Git: Useful commands to add to .gitconfig
[alias]
unadd = reset HEAD
log-tree = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
commit-diff-with-remote = log @{u}...HEAD --graph --decorate --left-right --boundary --pretty=format:'%Cred%h%Creset %d %s %Cgreen(%cr)%Creset %Cblue[%an]%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment