如何部分导出git存储库? [英] How to partially export a git repository?

查看:94
本文介绍了如何部分导出git存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司在内部使用git,我们在Google Code上使用svn发布了我们的一些开源工具。 (它应该支持git,问题可能是相同的。)

My company uses git internally and we publish some of our work as an open source on Google Code which uses svn. (Should it support git, the problem would be probably the same.)

问题是我们只发布我们仓库的部分,所以按照 http://code.google.com/p/support中所述使用git-svn / wiki / ImportingFromGit 将不起作用。

The problem is that we publish only part of our repository, so using git-svn as described on http://code.google.com/p/support/wiki/ImportingFromGit will not work.


  • 如何发布版本库的一部分? (这是我第一次复制我们想要发布的文件。)

  • 如何同步已发布文件和代码库之间的更改?

感谢,
Piotr

thanks, Piotr

推荐答案

您可以使用 git-filter-branch 将您要导入的部分提取到Google代码。

You could use git-filter-branch to extract the parts you want to import to Google Code.

这篇关于如何部分导出git存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆