如何正确使用网络磁盘驱动器的git

这个问题在这里已经有了答案:

  • 更改远程Git存储库的URI(URL)11个答案

  • 你可以通过使用来查看你的git遥控器

    $ git remote -v
    

    这将输出如下所示的内容:

    origin  git@host:user/repo.git (fetch)
    origin  git@host:user/repo.git (push)
    

    您可以通过删除它来更改此遥控器,然后使用适当的遥控器重新创建它

    $ git remote rm origin
    $ git remote add origin git@myhost:user/repo.git
    

    或者更简单

    $ git remote set-url origin git@myhost:user/repo.git
    
    链接地址: http://www.djcxy.com/p/4619.html

    上一篇: how to properly use git with network disk drives

    下一篇: How to change git remote origin git:// to https://?