Git pull results in “needs update” and files shown as modified

前端 未结 2 1589
谎友^
谎友^ 2021-01-05 22:02

Upon pull (into a clean production-type repo) all the changesets come across and cause the files to appear modified and needing a commit. The git lo

2条回答
  •  情书的邮戳
    2021-01-05 22:33

    As illustrated in this Git project, this can happen when Git tries to adjust eol style for projects developed on Unix, and cloned on Windows:

    via msysgit Troubleshooting

    run command in git bash: git config --global core.autocrlf false if this is not done then git svn rebase reports "needs update" thinking that changes have been made to the source May run into troubles with the commit

    See this SO answer for more.

提交回复
热议问题