Skip to content

Instantly share code, notes, and snippets.

@takashyx
Created April 28, 2016 05:31
Show Gist options
  • Save takashyx/e7087c50303ee46730aec977594bcc36 to your computer and use it in GitHub Desktop.
Save takashyx/e7087c50303ee46730aec977594bcc36 to your computer and use it in GitHub Desktop.
Git alias: graph / diff by words
[alias]
# cool branch graph
graph = log --graph --all --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
# diff by words, not lines
diffs = diff --word-diff
# cool logs
logs = log -p --graph --decorate --pretty=format:\"%ad [%cn] <c:%h t:%t p:%p> %n %Cgreen%d%Creset %s %n\" --stat
# show staged / not staged only (no untracked files)
sts = status -uno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment