1、查看当前地址
git remote -v
例:当前地址为 http://192.168.5.321/demo/demo.git
2、修改新地址
git remote set-url origin http://new-git.com/demo/demo.git
3、重复一,查看是否替换成功
2024-01-22 20:46:04
1、查看当前地址
git remote -v
例:当前地址为 http://192.168.5.321/demo/demo.git
2、修改新地址
git remote set-url origin http://new-git.com/demo/demo.git
3、重复一,查看是否替换成功