Git remove history commit

前端 未结 2 2032
慢半拍i
慢半拍i 2020-12-20 18:56

I have a large repository git over 3 years, I want to delete history of changes that were more than a year ago. Is this possible? Can use git rebase but how?

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 19:54

    Deleting history probably won't fix your problem. Chances are, at some point in time, a large file was committed to the repository and subsequently removed.

    I would take a look at Find files in git repo over x megabytes, that don't exist in HEAD.

提交回复
热议问题