开发者

Remote DOS Git repo and local unix repo

开发者 https://www.devze.com 2023-03-15 01:33 出处:网络
I am tracking remote repo which have files with dos endings (CRLF). I want to get local one which uses just LF, but I do not want to i开发者_开发技巧ntroduce changes in endings since I need to regular

I am tracking remote repo which have files with dos endings (CRLF). I want to get local one which uses just LF, but I do not want to i开发者_开发技巧ntroduce changes in endings since I need to regularly merge with upstream repo. Any advises?


You should set:

core.autocrlf=true

See this page: http://help.github.com/line-endings/


Try core.autocrlf input. Also on each repo, you can set the native line ending so the autocrlf will do what you expect on each FS.

0

精彩评论

暂无评论...
验证码 换一张
取 消