git-切换远程仓库地址

8次阅读

共计 167 个字符,预计需要花费 1 分钟才能阅读完成。

1、切换远程仓库地址:
方式一:修改远程仓库地址

【git remote set-url origin URL】更换远程仓库地址,URL 为新地址。

方式二:先删除远程仓库地址,然后再添加

【git remote rm origin】删除现有远程仓库
【git remote add origin url】添加新远程仓库

2、【git remote -v】查看远程仓库的地址

正文完
 0