How to repair CRLF in GIT repository to avoid merge conflicts

前端 未结 2 2030
囚心锁ツ
囚心锁ツ 2021-01-04 09:45

I created my repo with autocrlf=true and then made some checkouts and commits with autocrlf=false. Then switched back to autocrlf=true

相关标签:
2条回答
  • 2021-01-04 10:14

    Use the git merge option "ignore-space-change" or "ignore-all-space" for the "recursive" strategy. This option is in 1.7.4.1, at least.

    0 讨论(0)
  • 2021-01-04 10:21

    Easy answer: Unless you ARE doing x-platform dev with non-Windows, set this to false. There is no need for your source control to bastardize your files for you. After fixing any remaining issues you should be flying. Make sure the others working with you also set this to false.

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