From f56eaa6c9bf4833c1730d57f9fe3bd596276df08 Mon Sep 17 00:00:00 2001 From: Jon Harmon <33983824+jonthegeek@users.noreply.github.com> Date: Mon, 21 Jan 2019 16:12:31 -0600 Subject: [PATCH] Update connect-git-github.Rmd (#124) * Update connect-git-github.Rmd For users who somehow have Windows git set to keep Windows-style line endings (like I did, no idea how/why), explain how to fix it. * The need to set core.autocrlf suggests reinstall/update of Git for Windows --- connect-git-github.Rmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/connect-git-github.Rmd b/connect-git-github.Rmd index 6105d463..4f3df604 100644 --- a/connect-git-github.Rmd +++ b/connect-git-github.Rmd @@ -145,6 +145,14 @@ $ git config --show-origin --get core.autocrlf file:"C:\\ProgramData/Git/config" true ``` +If your value shows as `false`, you can set it to `true` with this command: + +``` bash +$ git config --global core.autocrlf true +``` + +`true` is the current default setting for `core.autocrlf` for [Git for Windows](#install-git-windows), our recommended method for installing Git on Windows. The need to set this explicitly in your global user config suggests you should consider reinstalling or updating Git for Windows. + ## Confirm the local change propagated to the GitHub remote Go back to the browser. I assume we're still viewing your new GitHub repo.