美文网首页Git
Git reset a remote repo url

Git reset a remote repo url

作者: JaedenKil | 来源:发表于2018-03-23 17:28 被阅读84次

    For instance, the repo is:

    $ git remote -v
    origin  http://aaa/XXX (fetch)
    origin  http://aaa/XXX (push)
    
    $ git rev-list --count master
    46
    

    But for some reason, the repo is moved to somewhere else.

    git remote set-url origin http://bbb/XXX
    

    Then try again:

    $ git remote -v
    origin  http://bbb/XXX(fetch)
    origin  http://bbb/XXX(push)
    
    $ git rev-list --count master
    46
    

    相关文章

      网友评论

        本文标题:Git reset a remote repo url

        本文链接:https://www.haomeiwen.com/subject/lzvxcftx.html