简体   繁体   English

使用tarball将更改合并到Git存储库中

[英]Merge changes into Git repository using tarballs

What is the easiest way to manage a git repository without a proper upstream? 没有适当的上游管理git存储库的最简单方法是什么? In my case, the upstream is a single old codger who refuses to make a repository and just releases tarballs occasionally. 就我而言,上游是一个老旧的编码器,他拒绝建立存储库,只是偶尔发布压缩包。 I still want to be able to merge in his changes to my repo, but how do I do this in the most elegant 'git' way? 我仍然希望能够合并他对我的仓库的更改,但是如何以最优雅的“ git”方式做到这一点?

Extract the tarballs and copy over all the files into your repo and commit. 解压缩tarball,并将所有文件复制到您的repo中并提交。

For handling deleted/renamed files in the tarballs, you can use options similar to --delete in rsync in your tool of choice to ensure that files that are present in the destination (your repo), but not in the source (extracted tarball), are deleted 要处理tarball中已删除/重命名的文件,可以在所选工具中使用与rsync中的--delete类似的选项,以确保文件存在于目标(您的存储库)中而不是源文件中(提取的tarball) ,已删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM