Interview Prep/Git & GitHub/Recovery and incident handling

How do you recover from a bad `git filter-repo` run on the shared repo?

IntermediateProductionRecovery and incident handling
Answer

Always run it on a fresh mirror clone and keep the untouched original, so recovery is just discarding the rewritten copy. If it was already pushed, the original history exists in the backup mirror, and git push --force of the original refs restores it.

All Git & GitHub questions Roadmap: Git & GitHub

More on Recovery and incident handling