File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
173173* [ Change a branch base] ( #change-a-branch-base )
174174* [ Use SSH instead of HTTPs for remotes] ( #use-ssh-instead-of-https-for-remotes )
175175* [ Update a submodule to the latest commit] ( #update-a-submodule-to-the-latest-commit )
176+ * [ Prevent auto replacing LF with CRLF] ( #prevent-auto-replacing-lf-with-crlf )
176177
177178<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
178179<!-- @doxie.inject end toc -->
@@ -1224,5 +1225,10 @@ git add <path-to-submodule>
12241225git commit -m "submodule updated"
12251226```
12261227
1228+ ## Prevent auto replacing LF with CRLF
1229+ ```sh
1230+ git config --global core.autocrlf false
1231+ ```
1232+
12271233<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
12281234<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 515515 }, {
516516 "title" : " Update a submodule to the latest commit" ,
517517 "tip" : " cd <path-to-submodule>\n git pull origin <branch>\n cd <root-of-your-main-project>\n git add <path-to-submodule>\n git commit -m \" submodule updated\" "
518- }
518+ }, {
519+ "title" : " Prevent auto replacing LF with CRLF" ,
520+ "tip" : " git config --global core.autocrlf false"
521+ }
519522]
You can’t perform that action at this time.
0 commit comments