GitHub - Merging Previous Checkins

心已入冬 提交于 2019-12-13 04:06:50

问题


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!

来源:https://stackoverflow.com/questions/51123593/github-merging-previous-checkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!