赞
踩
- ScottChen@ScottChen-PC MINGW64 /e/git/UImodules (master)
- $ git remote -v
- origin http://192.168.1.211/UIGroup/Mymodules.git (fetch)
- origin http://192.168.1.211/UIGroup/Mymodules.git (push)
-
- ScottChen@ScottChen-PC MINGW64 /e/git/UImodules (master)
- $ git remote set-url origin http://192.168.1.212/UIControl/UIControl.git
-
- ScottChen@ScottChen-PC MINGW64 /e/git/UImodules (master)
- $ git remote -v
- origin http://192.168.1.212/UIControl/UIControl.git (fetch)
- origin http://192.168.1.212/UIControl/UIControl.git (push)
-
- ScottChen@ScottChen-PC MINGW64 /e/git/UImodules (master)
-
- 1、切换远程仓库地址:
-
- 方式一:修改远程仓库地址
-
- git remote set-url origin Url 更换远程仓库地址,Url为新地址。
-
- 方式二:先删除远程仓库地址,然后再添加
-
- git remote rm origin 删除现有远程仓库
- git remote add origin url 添加新远程仓库
-
- 2、git remote -v 查看远程仓库的地址
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。