Catch code and secret issues before you commit.
Recent revisions are kept. Restoring one creates a new revision.