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
另外需要说的:
如果,不论现在你的项目处于之前源下的 那个分支下 ,只要执行上述命令即可。
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 更换仓库地址
- Git 更换仓库地址
- git更换仓库地址
- 准备更换git托管,如何迁移原git仓库
- 准备更换git托管,如何迁移原git仓库
- git 更换远程仓库地址
- <转>git更换远程仓库地址/本地代码推送到新的仓库
- Git 更换远程仓库地址
- git更换仓库地址
- git修改远程仓库地址
- Git修改远程仓库地址
- git查看远程仓库地址
- 使用GIT 仓库作为个人maven-仓库地址(gitee)
- eclipse 配置 upstream(配置git仓库地址)
- 如何导入外部Git仓库到中国源代码托管平台(Git@OSC)
- 更改git remote仓库地址
- 如何利用单台服务器实现10万多个Git仓库托管
- Maven 更换远程仓库地址
- AWS中国ubuntu实例搭建wordpress遇到的问题分享:端口、更换IP\域名、路径\地址
- IDEA git修改远程仓库地址