git修改remote rep 地址 的方法有三种:
1.修改命令
git remote set-url origin [url]
例如:
git remote set-url origin gitlab@gitlab.chumob.com:test/test.[git]
2.先删后加
git remote rm origingit remote add origin [url]
3.直接修改.git
目录下的config文件中的url地址
[remote "origin"]
url = ********
fetch = +refs/heads/*:refs/remotes/origin/*