Android line breaks and git

后端 未结 1 1569
我在风中等你
我在风中等你 2021-01-22 08:11

I\'m about to put a android project into a git repository, but I am a little uncertain about the line endings

My this project currently lives on windows, so autocrlf is

相关标签:
1条回答
  • 2021-01-22 08:35

    Simply don't bother with autocrlf: keep it to false.
    See also "How line ending conversions work with git core.autocrlf between different operating systems".

    If you use editors which doesn't change EOLs, you can work entirely with LF eol style accross platform.

    If you fnd some files for which you have to enforce eol, use a gitattribute eol directive.
    See "Distributing git configuration with the code".

    0 讨论(0)
提交回复
热议问题