-->

GitHub - Merging Previous Checkins

2019-08-27 21:44发布

问题:

I have a private github repository that needs some work done. When I first started the repository, I was new to git and I was checking in BLOBs and files containing potentially sensitive information. Things have been corrected going forward, but the repository is giant because of the old BLOBs that used to be stored in it, plus, I'm pretty sure that the potentially sensitive information is still in the history.

Let's say my commit history looks like this:

A -> B -> C -> D -> E -> F -> G -> H -> I -> J -> K

Is there a way for me to tell GitHub to merge everything between two points into one "checkin"? For example, I'd like my repo to look like this:

A -> [MERGE1] -> E -> F > [MERGE2] -> K

Thanks so much!