尝试使用Git Bash命令行: git status
和 git push origin [分支名] --force
;
解决不了,网络问题。
git config --global --unset http.proxy
git config --global --unset https.proxy
最终解决:git默认不走VPN的通道,开了VPN无效;使用代理VPN的Port,如VPN的Port是5500,可以设置git的代理为 http://127.0.0.1:5500
或者 https://127.0.0.1:5500
【GIT】使用Vscode同步git仓库,错误和解决方法记录_hint: waiting for your editor to close the file...-CSDN博客