version: "1.0.0" name: fresh-main description: Switch to main branch, pull latest changes, and ensure the repo is fully clean (no uncommitted changes, no untracked files).
Fresh Main
Reset the current repository to a clean, up-to-date main branch.
Steps
- Switch to main:
git checkout main - Pull latest:
git pull - Clean the repo: Ensure there are no uncommitted changes or untracked files. Run
git status to verify. If the working tree is not clean, warn the user and ask before taking any destructive action (e.g., git clean, git checkout .).