git 切换远程仓库地址

来源:互联网 发布:淘宝类目上限数量 编辑:程序博客网 时间:2024/06/01 18:52

1、切换远程仓库地址:

  • 方式一:修改远程仓库地址

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

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

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

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

原创粉丝点击