简体   繁体   English

如何从git svn中选定的版本中检出?

[英]How to checkout from chosen revision in git svn?

I have a very big and old project - with hundreds commits every week. 我有一个非常大而古老的项目-每周进行数百次提交。 how to checkout it from chosen revision and make git index it only from that revision? 如何从选定的版本中检出它并使git仅从该版本中对其进行索引?

Don't . 别这样 Git has no concept of partial checkouts (I guess you mean: only versions 10000 to now and ignore what's before 10000) Git没有部分结帐的概念(我想您的意思是:仅限10000到现在,而忽略10000之前的版本)

If you feel the project is too big you should consider breaking it up into smaller submodules (referenced repositories in SVN). 如果您觉得项目太大,则应考虑将其分解为较小的子模块 (SVN中的参考存储库)。

Git is very good in compressing and re-using deltas, so checking out even a very big project is not that big of a deal. Git在压缩和重新使用增量方面非常出色,因此即使签出非常大的项目也没什么大不了的。 It mostly comes down to file size. 它主要取决于文件大小。 If you look at the Linux Kernel - all revisions are almost constant in checkout time, mostly limited by your disk speed. 如果您查看Linux内核-所有版本的签出时间几乎都是恒定的,主要受磁盘速度的限制。 While the whole repository is only 2-3 times the size of a checked out working copy. 整个存储库仅是已签出工作副本大小的2-3倍。

Just have a look at the Kernel project and you will see - Git was specifically built for extremely large projects! 只需查看Kernel项目,您就会看到-Git专为超大型项目而构建!

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

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