我创建了一个 Template Repository在 GitHub 中,然后根据模板创建了一些存储库。自从它们被创建以来,我想拉入这些存储库的模板已经更新。
这可能吗?
最佳答案
在其他存储库中,您必须将此模板存储库添加为远程存储库。
git remote add template [URL of the template repo]
然后运行 git fetch 更新更改
git fetch --all
然后可以将另一个分支从新的远程合并到您当前的分支。
git merge template/[branch to merge]
https://help.github.com/en/articles/adding-a-remote
关于GitHub - 从模板存储库中提取更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56577184/