Pull Requests and Backups
Last updated October 28, 2026
Project Mode never pushes straight to your main branch. Your work goes to its own classgrid/ branch with a pull request, so the repo owner always decides what gets merged. And if you close the editor without pushing, your work is backed up to GitHub for you.
Push to GitHub
- Click Push to GitHub in the editor.
- A window asks "What did you change?" Type a short note, or tap one of the suggestion chips.
- Click Push changes.
You can also just ask the agent: "Push my changes to GitHub." It pushes the same way.
What happens when you push
Nothing lands on main by itself. Pushes always go to a classgrid/ branch with a pull request. The push window may show a "main" label, but the push still goes to a new classgrid/ branch and a pull request.
Merge on GitHub
Open the pull request on GitHub, read the changes, and click merge when you're happy. If you work with a team, they can review it there like any other pull request.
Who is the author
Each commit is made by Classgrid AI (agent@classgrid.in), with you added as co-author. On GitHub you'll see both, so it's always clear the change came from Classgrid AI working with you.
When someone else pushed first
If a teammate pushed to the same branch while you were working, Classgrid builds your changes on top of theirs.
If you both changed the same lines, Classgrid stops instead of guessing, and tells you "Nothing was lost." Check the pull request on GitHub with your teammate and decide which version to keep.
Automatic backups
You don't have to remember to push before you leave.
Backups are a safety net, not a replacement for pushing. When you're ready to share your work, use Push to GitHub so it goes into a pull request.
Tips
- Push in small steps, with clear notes in What did you change? Smaller pull requests are easier to review.
- Review the agent's changes first. See Review and undo.
- Want to see the result live? Deploy the
classgrid/branch as a Vercel preview. See Deploy with Vercel.