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)`.
173
173
* [ Change a branch base] ( #change-a-branch-base )
174
174
* [ Use SSH instead of HTTPs for remotes] ( #use-ssh-instead-of-https-for-remotes )
175
175
* [ 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 )
176
177
177
178
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
178
179
<!-- @doxie.inject end toc -->
@@ -1224,5 +1225,10 @@ git add <path-to-submodule>
1224
1225
git commit -m "submodule updated"
1225
1226
```
1226
1227
1228
+ ## Prevent auto replacing LF with CRLF
1229
+ ```sh
1230
+ git config --global core.autocrlf false
1231
+ ```
1232
+
1227
1233
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1228
1234
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 515
515
}, {
516
516
"title" : " Update a submodule to the latest commit" ,
517
517
"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
+ }
519
522
]
You can’t perform that action at this time.
0 commit comments