📌  相关文章
📜  如何从上游原始存储库中提取 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:48.638000             🧑  作者: Mango

代码示例1
$ cd PROJECT_NAME
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
$ git fetch upstream

# then: (like "git pull" which is fetch + merge)
$ git merge upstream/master master

# or, better, replay your local work on top of the fetched branch
# like a "git pull --rebase"
$ git rebase upstream/master