Studio › Manual › Source control

Branches and merging

A branch is a separate line of work: try a boss fight on its own branch without touching main.

  • New Branch… (⌃⇧⌘B, or the branch card's menu) makes a branch where you are and switches to it. Your uncommitted changes come along.
  • Switch to Branch puts that branch's files in the project. If a switch would overwrite changes you haven't committed, Studio stops and says so: commit them or Stash them first. The project reopens after a switch (tabs and carets come back).
  • Merge into Current Branch… (⌃⇧⌘M) brings another branch's commits in. When both branches changed the same asset, it is listed under Merging with Keep Mine (this branch's version) and Take Theirs (the other branch's). When every conflict is settled, press Commit to finish the merge, or Abort Merge to put everything back.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.