переписать ветки (Rewrite branches)
Предупреждение (Warning)
git filter-branch has a plethora of pitfalls that can produce
non-obvious manglings of the intended history rewrite (and can
leave you with little time to investigate such problems since it
has such abysmal performance). These safety and performance
issues cannot be backward compatibly fixed and as such, its use
is not recommended. Please use an alternative history filtering
tool such as git filter-repo
[1]. If you still need to use git
filter-branch, please carefully read the section called 'SAFETY'
(and the section called 'PERFORMANCE') to learn about the land
mines of filter-branch, and then vigilantly avoid as many of the
hazards listed there as reasonably possible.