简体   繁体   中英

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?

Don't . Git has no concept of partial checkouts (I guess you mean: only versions 10000 to now and ignore what's before 10000)

If you feel the project is too big you should consider breaking it up into smaller submodules (referenced repositories in 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. 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. While the whole repository is only 2-3 times the size of a checked out working copy.

Just have a look at the Kernel project and you will see - Git was specifically built for extremely large projects!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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