Skip to content

Instantly share code, notes, and snippets.

@dkordik
Created June 20, 2017 21:36
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 dkordik/707decc1ad95e63a4577d47f947953a3 to your computer and use it in GitHub Desktop.
Save dkordik/707decc1ad95e63a4577d47f947953a3 to your computer and use it in GitHub Desktop.
git diff aliases
#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