最近在提交代码的时候老是遇到
fatal: 远端意外挂断了
Everything up-to-date
参考网上说的需要切换协议:
1. 可以先看一下自己的是什么类型,查看当前remote
git remote -v
2. 如果需要切换到http:
git remote set-url https://github.com/username/repository.git
3. 如果需要切换到ssh:
git remote set-url git@github.com:username/repository.git
- 以上的后面的链接都需要提花为自己的仓库地址
参考链接
https://blog.csdn.net/yimingsilence/article/details/79980070