Add Prevent auto replacing LF with CRLF

This commit is contained in:
unknown 2019-07-31 23:09:35 +09:00
parent 135bd3c526
commit a9d29fb4bc
2 changed files with 10 additions and 1 deletions

View file

@ -173,6 +173,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Change a branch base](#change-a-branch-base)
* [Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes)
* [Update a submodule to the latest commit](#update-a-submodule-to-the-latest-commit)
* [Prevent auto replacing LF with CRLF](#prevent-auto-replacing-lf-with-crlf)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -1224,5 +1225,10 @@ git add <path-to-submodule>
git commit -m "submodule updated"
```
## Prevent auto replacing LF with CRLF
```sh
git config --global core.autocrlf false
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View file

@ -515,5 +515,8 @@
}, {
"title": "Update a submodule to the latest commit",
"tip": "cd <path-to-submodule>\ngit pull origin <branch>\ncd <root-of-your-main-project>\ngit add <path-to-submodule>\ngit commit -m \"submodule updated\""
}
}, {
"title": "Prevent auto replacing LF with CRLF",
"tip": "git config --global core.autocrlf false"
}
]