Files
antigravity-skills-reference/docs/maintainers/rollback-procedure.md
sck_0 45844de534 refactor: reorganize repo docs and tooling layout
Consolidate the repository into clearer apps, tools, and layered docs areas so contributors can navigate and maintain it more reliably. Align validation, metadata sync, and CI around the same canonical workflow to reduce drift across local checks and GitHub Actions.
2026-03-06 15:01:38 +01:00

1.2 KiB

Rollback Procedure

Use this when a structural refactor, generated artifact refresh, or release prep needs to be backed out safely.

Before Rolling Back

  • Capture the current branch name with git branch --show-current.
  • Review changed files with git status --short.
  • Decide whether you need to keep any generated files before reverting.

Safe Rollback Flow

  1. Create a temporary safety branch:
git switch -c rollback-safety-check
  1. Verify the repository still reports the expected changed files:
git status --short
  1. Switch back to the original branch:
git switch -
  1. If you need to discard only this refactor later, revert the relevant commit(s) or restore specific files explicitly:
git restore README.md CONTRIBUTING.md package.json package-lock.json
git restore --staged README.md CONTRIBUTING.md package.json package-lock.json
  1. If the refactor has already been committed, prefer git revert <commit> over history-rewriting commands.

Notes

  • Avoid git reset --hard unless you have explicit approval and understand the impact on unrelated work.
  • For generated artifacts, regenerate after rollback with the standard scripts instead of manually editing them.