Run (Unix):
git -c rebase.instructionFormat='%s%nexec GIT_AUTHOR_DATE="%ai" GIT_COMMITTER_DATE="%ci" git commit --amend --no-edit --reset-author' rebase -r --root
Run (Windows):
git -c rebase.instructionFormat="%s%nexec GIT_AUTHOR_DATE="""%ai""" GIT_COMMITTER_DATE="""%ci""" git commit --amend --no-edit --reset-author" rebase -r --root
Sources: https://www.reddit.com/r/git/comments/jp59k5/deleted_by_user/