Squash git story

I have a big old git repo with a lot of binaries hosted on the local Redmine server. I would like to squander all comments up to a certain date (6 or 12 months ago) together in order to save some data about the size of my repo.

Is there any way to do this?

+3
source share
1 answer

Each time you change history, all transactions after the change will have new SHA1 amounts. If you just use a repo or a group of people with whom you can easily communicate, then you can safely filter or filter (see below) to clear the history, and then when they extract, they will need to manually reset all their branches to new heads. If this is not the case, then, unfortunately, you just have to live with it. Once a story is published, it cannot be changed.

git rebase. , . git filter-branch . , . , -subdirectory git (, , ), . , git filter-branch shell-script script , 'd . , . . , git -, , .

+3

Source: https://habr.com/ru/post/1778983/


All Articles