- 可直接修改远程主机地址:
git remote set-url origin [url]
其中origin为远程主机名称,url为要设置的远程主机地址
例如:git remote set-url origin gitlab@gitlab.chumob.com:php/hasoffer.git
- 删除远程主机后重新添加
git remote rm origin
git remote add origin [url]
git remote set-url origin [url]
其中origin为远程主机名称,url为要设置的远程主机地址
例如:git remote set-url origin gitlab@gitlab.chumob.com:php/hasoffer.git
git remote rm origin
git remote add origin [url]
Update your browser to view this website correctly. Update my browser now