如把之前的域名(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
另外需要说的:
如果,不论现在你的项目处于之前源下的 那个分支下 ,只要执行上述命令即可。