zoukankan      html  css  js  c++  java
  • git切换远程仓库地址

    $ git remote  -v
    origin  http://192.168.1.100/aaa/Project.git (fetch)
    origin  http://192.168.1.100/aaaj/Project.git (push)

    ChenYijun@ChenYijun-PC MINGW64 /e/git/Project (developer)
    $ git remote set-url origin http://192.168.1.111/bbb/Project.git

    ChenYijun@ChenYijun-PC MINGW64 /e/git/Project (developer)
    $ git branch -a
    * developer
      master
      remotes/origin/Project2.0.0
      remotes/origin/ProjectForMacV2.0.0
      remotes/origin/Project_Free2.0
      remotes/origin/developer
      remotes/origin/master

    ChenYijun@ChenYijun-PC MINGW64 /e/git/Project (developer)
    $ git remote -v
    origin  http://192.168.1.111/bbb/Project.git (fetch)
    origin  http://192.168.1.111/bbb/Project.git (push)

    ChenYijun@ChenYijun-PC MINGW64 /e/git/Project (developer)




    1、切换远程仓库地址:

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

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

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

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

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

    原文:https://blog.csdn.net/yihanzhi/article/details/78801027

  • 相关阅读:
    HTTP学习笔记(1)ULR语法
    wsdl地址如何在远程服务器上查看源码?
    java线程详解(三)
    java线程详解(二)
    java线程详解(一)
    java中this用法总结
    Linux运行python程序
    如何获取到Java对象的地址
    IDEA 远程调试
    linux环境中mysql默认端口3306无法连接问题排查
  • 原文地址:https://www.cnblogs.com/Vancamel/p/10276111.html
Copyright © 2011-2022 走看看