您的位置:首页 > 其它

git仓库地址更换域名地址,即更换git托管

2017-02-27 12:29 351 查看
如把之前的域名(git.vread.com)更换为git.book.sina.com.cn

1.绑定host。221.179.xxx.164 git.book.sina.com.cn

2.清楚原来的git源。

git remote remove origin

3.添加新的git源

git remote add origin http://git.book.sina.com.cn/static.git

static.git

— git remote rm origin

— git remote add origin http://git.book.sina.com.cn/static.git

readstatic.git

— git remote rm origin

— git remote add origin http://git.book.sina.com.cn/readstatic.git

另外需要说的:

如果,不论现在你的项目处于之前源下的 那个分支下 ,只要执行上述命令即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git