TEXT 34
Git-tricks.txt Guest on 16th July 2020 03:00:10 AM
  1. # turn on colors (red/green diffs in console)
  2. git config --global color.ui "true"
  3.  
  4. # make log graph alias (gitk view in console)
  5. git config --global alias.logg "log --graph --oneline --decorate --all"
  6.  
  7. # for mupdf:
  8. git config core.whitespace trailing-space,space-before-tab,indent-with-non-tab,tabwidth=2
  9.  
  10. # for ghostscript:
  11. git config core.whitespace trailing-space,space-before-tab,tab-in-indent,tabwidth=4
  12.  
  13. # Check for whitespace errors in .git/hooks/pre-commit
  14. exec git diff-index --check --cached $against --

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.