方法有三种:
1.修改命令git remote set-url origin [url]例如:git remote set-url origin gitlab@gitlab.chumob.com:php/hasoffer.git
2.先删后加
git remote rm origingit remote add origin [url]
3.直接修改config文件
xcode git修改远程仓库地址
原文:https://www.cnblogs.com/Im-Victor/p/13268759.html