Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd9b419

Browse files
authored
Merge pull request #176 from lntuition/master
Add Prevent auto replacing LF with CRLF
2 parents 135bd3c + a9d29fb commit bd9b419

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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>
12241225
git 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 -->

‎tips.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,5 +515,8 @@
515515
}, {
516516
"title": "Update a submodule to the latest commit",
517517
"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\""
518-
}
518+
}, {
519+
"title": "Prevent auto replacing LF with CRLF",
520+
"tip": "git config --global core.autocrlf false"
521+
}
519522
]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /