Git template repository & update changes to sub-repository

使用方式参考: https://docs.github.com/cn/github/creating-cloning-and-archiving-repositories/creating-a-template-repository
当模版仓库更新后如何更新到具体的项目中:
https://stackoverflow.com/questions/56577184/github-pull-changes-from-a-template-repository

1.git remote add template xxxxxx
2.git fetch template
3.git merge template/master --allow-unrelated-histories

处理完冲突上传即可

你可能感兴趣的:(Git template repository & update changes to sub-repository)