I really dislike to have monster .git folder (2GB) and I don’t care about changes in 2002 and I don’t want to create new repository so what should I do to clean .git / log ?
Note that I want it not local-only, next time I want to clone repository without history or with history since 2011 year.
thank you
From your question, I think you want something like this.
However, to copmress the .git folder safely, the above is not recommended. You can try the following as mentioned in a comment by Linus.
where that depth thing is just about how deep the delta chains can be (make them longer for old history – it’s worth the space overhead), and the window thing is about how big an object window we want each delta candidate to scan.