$ rm -rf .git $ git config --global core.autocrlf false $git init $git add . ------------------------------------------------------------------ $ git remote add origin git@githun.com:youName/ gitdemo.git 转载于:https://www.cnblogs.com/Sea1ee/p/7729309.html