GitHub - 从模板存储库中提取更改

标签 github

我创建了一个 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/

相关文章:

git - 为什么我没有进行任何更改时会出现冲突?

GitHub 页面和 jekyll 部署无法正常工作

git - 推送到 github 的文件夹不包含任何内容

Github 状态示例

json - 仅获取 json 中每个提交的内容? (git 差异 json)

git - 如何在没有 git 添加它们的情况下进行 git pull

git - 断电损坏的 git 文件后如何检索重要的 git 信息?

ios - 使用 Yalantis/Koloda 库加载不止 1 个 UIView

github 没有与名称关联的地址

github - 如何在 Github Atom 编辑器中为多台计算机同步包和设置