Once you have rewritten up to that/point/in/time
, you can plug the recent history on top of the rewritten sequence :
# replace the commit that initially was that/point/in/time with the rewritten one :git replace <previous sha> that/point/in/time# run git filter-repo --force to rewrite the history of all branches as# if they happened on top of the new commit :git filter-repo --force
note : the above command will simply write a new chain of commits, with the content of each commit preserved as is. Inspect your history to see if you need to add some additional edits around the junction.