Skip to content

Commit

Permalink
Merge pull request #176 from lntuition/master
Browse files Browse the repository at this point in the history
Add Prevent auto replacing LF with CRLF
  • Loading branch information
hemanth authored Feb 22, 2020
2 parents 135bd3c + a9d29fb commit bd9b419
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
Expand Down Expand Up @@ -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
```
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->
5 changes: 4 additions & 1 deletion tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]

0 comments on commit bd9b419

Please sign in to comment.