Git mode
Commit, branch, tag and browse history from Studio's Git tab, with versions still saved alongside.
Turn on Use Git mode in Project Settings, Version Control (already on for an imported project that has commits). Changes then show since your last commit, a Git tab appears in the editor sidebar, and versions keep working alongside it.
CommitLink to this section
- Open the Git tab (or click N to commit in the status bar).
- Click Commit N changes….
- Check the files to include, and review each one's changes.
- Write a message, or click Write Message to have the agent write one (left blank, the agent writes it when you commit).
- To commit to a new branch, check On a new branch and name it.
- Click the commit button (for example Commit 3 files to main), or press ⌘Enter (Ctrl+Enter).
If git doesn't have your name and email yet, Studio asks for them (saved for all your projects). Files that look like secrets, build output and new files over 50 MB are left out.
Discard in the commit window saves a version first, so you can bring discarded changes back from Version History.
History, branches and tagsLink to this section
The Git tab has three views:
- Changes: what's waiting to commit.
- History: every commit. Click one to see its changes; right-click to branch or tag from it, check it out, or undo the last commit (your changes stay in the files).
- Branches: your branches, the remote's and your tags. Click to switch; right-click to merge, rebase, rename or delete.
The branch button in the status bar switches or creates branches too. If you have uncommitted changes, choose whether to bring them to the other branch, leave them on this one (offered back when you return), or discard them. Whichever you pick, they're saved in Version History first.