Clean up Git history and recover lost commits.
Recent revisions are kept. Restoring one creates a new revision.