diff --git a/basics.html b/basics.html index c287e89a31daa7630eea0c3ce26af7ecbe75c019..84f3199eec35f4938c995d79889df426e34bbd77 100644 --- a/basics.html +++ b/basics.html @@ -344,8 +344,8 @@ ``` </section> - <section id="setup-git" data-markdown> - ## git setup + <section id="setup-git-1" data-markdown> + ## git setup #1 ```bash # configure your identity @@ -355,17 +355,29 @@ # show colors git config --global color.ui auto - # editor - git config --global core.editor emacs - # configure aliases git config --global alias.unstage 'reset HEAD --' git config --global alias.lol \ 'log --graph --decorate --oneline --all' ``` + </section> + + <section id="setup-git-2" data-markdown> + ## git setup #2 + + ```bash + # editor + git config --global core.editor emacs + + # WINDOWS ONLY: let git handle line endings + git config --global core.autocrlf true + ``` notes: - - editor: talk about line endings + - talk about line endings + - 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) </section> </section>