79689881

Date: 2025-07-04 08:37:33
Score: 2
Natty:
Report link

To put it all toghether from @grawity answer and the Post I linked in the first Post.

  1. Clone old repo

  2. Clone new repo

  3. cd into new repo

git fetch ../oldRepo master:ancient_history
git replace --graft $(git rev-list master | tail -n 1) $(git rev-parse ancient_history)
git filter-repo --replace-refs delete-no-add --force

Then i pushed it to an newly created Repository.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @grawity
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jan Zimmermann