3 ms·
(Actually in order to keep the commit history clean, I continue rewriting commit history and doing `git push -f`, actually I wonder if you might consider to m
by walty8 7y ago
(Actually in order to keep the commit history clean, I continue rewriting commit history and doing `git push -f`,
actually I wonder if you might consider to maintain another clean repository. So there is a raw repository to record every real history, and a clean repositiory to for better reading? Because sometimes the raw history could be interesting too.
- rui314 7y agoI haven't considered that but I think that's hard to do for technical reasons. New commits are made on top of a clean history, so there's no single history of "raw" commits but they are intermingled.
- saagarjha 7y agoMaybe you can disable git gc and allow for readers to grab a copy of your repository’s full reflog?
- CogitoCogito 7y agoI would recommend you keep doing it the way you are. You are working on an educational exposition and choosing commits as part of that. You should take the position that the best judge of proper presentation. That said you could always turn off gc if some people want it, but I wouldn't put any more than a token effort into keeping that history.