Warning: LF will be replaced by CRLF
git config --global core.autocrlf false
SSH配置问题
- 清空
.ssh文件夹后重新生成known_hosts文件:
第二个命令ssh-keyscan -t rsa github.com >> .ssh/known_hosts ssh-keygen -H rm .ssh/known_hosts.oldssh-keygen -H将host名从明文变为哈希字串
清除历史提交记录
-
Checkout
git checkout --orphan latest_branch -
Add all the files
git add -A -
Commit the changes
git commit -am "commit message" -
Delete the branch
git branch -D master -
Rename the current branch to master
git branch -m master -
Finally, force update your repository
git push -f origin master