github中origin和upstream的区别

2020-02-19  本文已影响0人  tf_dejs

参考:

  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
上一篇下一篇

猜你喜欢

热点阅读