From 885f57d205522dbf0c3d17c1c3e1939f3114aa23 Mon Sep 17 00:00:00 2001 From: Christian Krause <christian.krause@idiv.de> Date: Mon, 3 Dec 2018 13:43:41 +0100 Subject: [PATCH] improves platform specific setup section --- basics.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/basics.html b/basics.html index d41475e..18f14da 100644 --- a/basics.html +++ b/basics.html @@ -446,18 +446,25 @@ ## git setup #2 ```bash - # editor - git config --global core.editor emacs + # command line editor + git config --global core.editor nano - # WINDOWS ONLY: let git handle line endings + # Linux GNOME / KDE + git config --global core.editor gedit + git config --global core.editor kate + + # Windows + git config --global core.editor notepad git config --global core.autocrlf true ``` notes: - - talk about line endings + ### line endings + - explain the difference: Windows CRLF, everyone else LF, some + accept only LF - maintainers may reject contributions because of line endings - - difference between git config and editor config - - you can have fine grained control over this with gitattributes(5) + - on Windows, git can do it for you, via `dos2unix` + - fine grained control with `man 5 gitattributes` </section> </section> -- GitLab