- 问题描述:代码仓库改变了网址,导致已经更改的代码提不上去
- 解决方法
- 在该项目右击找到 git-bash 并输入以下命令
- 查看当前的 git 网址 : git remote -v
- 修改当前的 git 网址: git remote set-url origin http:xxxxxxxx.git
- 再次查看当前的 git 网址 : git remote -v ,就可以发现已经更改为最新的网址了,然后就可以推送代码了
git 更换网址代码提不上去
于 2024-06-19 10:16:06 首次发布