Keep CI/CD credentials out of your source code.
Recent revisions are kept. Restoring one creates a new revision.