Created
April 28, 2016 05:31
-
-
Save takashyx/e7087c50303ee46730aec977594bcc36 to your computer and use it in GitHub Desktop.
Git alias: graph / diff by words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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