Github fork 仓库与原仓库同步
作者:
iVikings | 来源:发表于
2021-10-20 16:29 被阅读0次
git remote -v
origin https://github.com/YOUR_UERNAME/YOUR_FORK.git (fetch)
origin https://github.com/YOUR_UERNAME/YOUR_FORK.git (push)
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git remote -v
origin https://github.com/YOUR_UERNAME/YOUR_FORK.git (fetch)
origin https://github.com/YOUR_UERNAME/YOUR_FORK.git (push)
upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)
git fetch upstream
git checkout master
git merge upstream/master
本文标题:Github fork 仓库与原仓库同步
本文链接:https://www.haomeiwen.com/subject/giitaltx.html
网友评论