Created
June 20, 2017 21:36
-
-
Save dkordik/707decc1ad95e63a4577d47f947953a3 to your computer and use it in GitHub Desktop.
git diff aliases
This file contains hidden or 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
#uses showlinenum.awk from: https://github.com/jay/showlinenum (needs gawk, brew install gawk) | |
alias gd='git diff --color=always | ~/showlinenum.awk color_line_number=90 color_separator=37 | less -r' | |
alias gds='git diff --staged --color=always | ~/showlinenum.awk color_line_number=90 color_separator=37 | less -r' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment