Skip to content

Commit

Permalink
Update connect-git-github.Rmd (jennybc#124)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jonthegeek authored and jennybc committed Jan 21, 2019
1 parent d833a1b commit f56eaa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions connect-git-github.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f56eaa6

Please sign in to comment.