git config --global core.autocrlf falsegit config --global color.ui truegit config --global credential.helper store git checkout index.php//放弃这个文件的改动 转载于:https://www.cnblogs.com/modle-sherlock/p/5245847.html