开发者

Remote DOS Git repo and local unix repo

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜