Experiment on a copy.
A branch is a safe copy for one change. A pull request asks for it to be checked and joined back into the main version.
main
Always works
branch
leave-export
commits
Small steps
pull request
Review and checks
merge
Back into main
Ask the agent: “Create a branch for this change, commit as you go, and open a pull request with a summary when it's ready.” It can do all of it with GitHub's command-line tool.
Source: GitHub CLI ↗
Main always works. Everything else is a branch.