Try ideas safely with branches
Use branches, commits and worktrees without needing to learn Git first.
- Topic
- Previews & branches
- Type
- Explainer
- Reading time
- 1 min
- Updated
See what changed
The Changes tab shows every file an agent touched, line by line. Open it full screen for a closer look.
Branches
Switch branches, or start a new one, from the branch menu by the message box. A branch is a separate line of work, so you can try an idea and throw it away if it doesn’t work out.
Commits
Ask the agent to save a snapshot of your work as a commit, or to commit after every change.
Worktrees
A worktree is a separate copy of your project on its own branch, so you can try an idea side by side with your main work. When you’re happy with it, ask the agent to bring the changes back, conflicts included.
Push and pull
Sync with GitHub or any other remote. If something goes wrong, Swarm explains why in plain English.
Did this help?
Thanks for letting us know.
Sorry about that. Tell us what was missing and we'll improve it.