:: 提交时转换为LF,检出时不转换(以上问题使用此命令可解决) git config --global core.autocrlf input git add -A . git commit -am 'commit' git pull git fetch git push origin master