diff --git a/git/README.md b/git/README.md index 270cde7..74d1793 100644 --- a/git/README.md +++ b/git/README.md @@ -13,3 +13,25 @@ lola = log --graph --decorate --pretty=oneline --abbrev-commit --all diff = diff --ws-error-highlight=all ``` + +### Line ending settings + +On Windows: + +``` +git config core.autocrlf true +``` + +On Linux (should be default): +``` +git config core.autocrlf input +``` + +## Show whitespace errors + +Also works with `git diff`: + +``` +git show --ws-error-highlight=new,old +``` +