Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: collapsing old git history to reduce repo size, while preserving commit #s and tags

From: Andrew Ardill <hidden>
Date: 2016-06-15 22:59:07

On 29 October 2013 15:42, Stas Cherkassky [off-list ref] wrote:
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.
If you want to change the actual history of your repository, it will
be largely incompatible with the original, and this is by design. You
don't want somebody being able to change your history without you
knowing about it.
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 ?
It sounds like a shallow checkout might be appropriate for you, try
looking that up.

Regards,

Andrew Ardill
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help