I am unsure this is possible in any sense given that control version systems are not designed to be able to be broken or lose old commits.
I do think you can create new repositories from old commits via a workflow and a script making a list of commits, checking out any of them and creating and copying code in a new repository via API from some code forge.
However, I keep the same about my first idea.