Re: collapsing old git history to reduce repo size, while preserving commit #s and tags
From: Stas Cherkassky <hidden>
Date: 2016-06-15 22:59:07
Hi, I have an old git repo with e.g. 1000 commits, that grew up to considerable size. Now, I am starting a new project and want to use this repo, but "slimmed down". I'd like to clone the repo to the new project and "slim it down" I'd like to collapse 900 first commits into one, but keep last 100, with their commit numbers and tags. I also want to be able to push and merge changes from the old repo to the new one. I've read about git rebase, but it seems to tamper with commit numbers and looses tags.. Is there any other way to have it done ? thanks!!