美文网首页
github中origin和upstream的区别

github中origin和upstream的区别

作者: tf_dejs | 来源:发表于2020-02-19 09:45 被阅读0次

    参考:

    1. https://blog.csdn.net/liuchaoxuan/article/details/80656145
    2. https://help.github.com/en/github/using-git/pushing-commits-to-a-remote-repository#remotes-and-forks

    When a repo is cloned, it has a default remote called origin that points to your fork on GitHub, not the original repo it was forked from. To keep track of the original repo, you need to add another remote named upstream.
    git remote add upstream git://github.com/user/repo_name.git

    git-origin-upstream.png

    相关文章

      网友评论

          本文标题:github中origin和upstream的区别

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