Rojo and Git day to day

Use Rojo and Git day to day on Beacon Yard. Read default.project.json, understand rojo syncback and the course's 7.5.1 pin, compare alternatives, adopt a branching strategy, and practise resolving a merge conflict.

Tool lesson, about 70 minutes, 8 steps

By the end you can

  • Read default.project.json as the map from folders to services, and use rojo serve, build, sourcemap and syncback day to day
  • Compare Rojo, Argon, Studio's Script Sync and Team Create, and say which source of truth each one gives you
  • Use a branching strategy, milestone tags and worktrees, and resolve a real text merge conflict in Git

Before this: Git from zero: commits, diffs, branches, undo, Set up your machine, part 3: connect, play, and the optional extras

1A file that maps folders to services

You already installed Rokit, Rojo and the Studio plugin in Setup, and you met commits and branches in Module -1. This lesson is about using them every day on a real project.

Open default.project.json in Beacon Yard and read it like a street map. Each $path says which folder on your disk becomes which place in the game's tree.

    "ReplicatedStorage": {
      "Shared": {
        "$path": "src/shared"
      },
      "Packages": {
        "$path": "Packages"
      },
      "Assets": {
        "$path": "assets/roblox"
      },
      "GameTests": {
        "$path": "tests",
        "challenges": {
          "$path": "challenges"
        }
      }
    },
    "ServerScriptService": {
      "Server": {
        "$path": "src/server"
      },
      "ServerPackages": {
        "$path": "ServerPackages"
      }
    },
    "TextChatService": {
      "$className": "TextChatService",
      "$properties": {
        "ChatVersion": "TextChatService"
      }
    },
    "StarterPlayer": {
      "StarterPlayerScripts": {
        "Client": {
          "$path": "src/client"
Figure 1.1

RojoRojoA tool that syncs files on your disk into Roblox Studio.Think of it as a photocopier from your folder to Studio. reads this file, and its docs describe the format1. It is a community tool, not a Roblox product: a local server plus a Studio plugin, with commands that build places and sourcemaps from the same map2. Because the code is plain files, it works with Git, any editor, a linter and CI.

In Beacon Yard's project file, where does src/client end up in Studio?

  1. StarterPlayer.StarterPlayerScripts.Client
  2. ServerScriptService.Server
  3. ReplicatedStorage.Shared
  4. Workspace
Answer

StarterPlayer.StarterPlayerScripts.Client. The StarterPlayer entry maps src/client to StarterPlayerScripts, under a folder named Client. Server code is under ServerScriptService and shared code under ReplicatedStorage.

Open this step in lesson mode · Link to this step · This confused me

2The daily Rojo loop: serve, build, sourcemap

Day to day you run three Rojo commands. Start rojo serve in your repo folder and click Connect in the Rojo plugin (localhost, port 34872) so every save in src/ updates Explorer live. Run rojo build whenever default.project.json or uploaded meshes change, or when you need a fresh .rbxlx file to open or upload. Run rojo sourcemap so luau-lsp knows what game.ReplicatedStorage.Shared resolves to3.

Roblox Studio
Studio with the Rojo plugin showing Connected to the beacon-yard project on localhost port 34872, and Explorer open on ReplicatedStorage, Shared, Config.

Select a numbered pin, or a row below, to read what it marks.

Figure 2.1.

Saves under src/ flow into this place.

Evidence, figure 2.2rojo-commands.log
$ rojo serve   (the banner prints before the bind fails: the default port was already in use)
Rojo server listening:
  Address: localhost
  Port:    34872
 
Visit http://localhost:34872/ in your browser for more information.

Both sidesRemember: Rojo is a photocopier from folder to Studio.

Evidence, figure 2.3rojo-commands.log
$ rojo sourcemap default.project.json -o sourcemap.json
Created sourcemap at sourcemap.json
exit 0
Evidence, figure 2.4ci-checks.log
$ mkdir -p build && rojo build default.project.json -o build/beacon-yard.rbxlx
Building project 'beacon-yard'
Built project to beacon-yard.rbxlx
exit 0
built file: 2199083 bytes

The built place file is output, not source: at m13-art-pass it is 2,199,083 bytes of noisy XML that Git cannot diff cleanly, so build/ and *.rbxlx stay in .gitignore.

The built place is 2,199,083 bytes at m13-art-pass. Why is build/ in .gitignore instead of the repo?

  1. It is output you can rebuild from the files, and Git cannot show a useful diff of it
  2. Git cannot store files that large
  3. Roblox forbids committing places
  4. Studio refuses to open committed places
Answer

It is output you can rebuild from the files, and Git cannot show a useful diff of it. The project file and src/ are the source; the place is rebuilt from them. Committing it would add noise to every diff.

Open this step in lesson mode · Link to this step · This confused me

3Alternatives and rojo syncback

Every file-based setup answers one question: where does the source of truth live? Roblox's docs name three answers. In a Studio-native workflow the place on Roblox is the truth and Script Sync copies scripts out. In a partially managed workflow Git owns the code and Roblox owns the art and level. In a fully managed workflow Git owns everything and CI publishes the places4. Rojo's own docs say that nearly every older alternative has been deprecated or left unmaintained, and name Lune, rbxmk, Argon and Lync as what remains5.

Ways to get code out of the place and into files

OptionWhat it isWhen pros pick itTrade-offs
RojoA community tool: a local server and Studio plugin that sync files into Studio, plus builds from a project file.Teams with Git, linters and CI. Roblox's docs recommend partially managed Rojo for most teams that use Git, and Rojo's own docs call it the de facto standard for file syncing.Two tools to keep in step, and one-way by default. Version 7.7 added `rojo syncback`, which pulls an existing place back into files; the 7.5.1 this course pins does not have it.
ArgonA community CLI with two-way sync, builds and CI helpers (its README lists them).People who want two-way sync of scripts and other instances in a Rojo-style project.A smaller community than Rojo, and not the tool Roblox's docs describe.
Studio Script SyncRoblox's own sync of scripts and folders to files on your disk, in both directions.Small teams that want files and Git for code but stay in Studio for everything else. The docs call it a good fit for fewer than five creators on a single-place game.Only scripts and folders sync, so models, parts, attributes and tags are not in Git; two people editing one synced script can overwrite each other.
Team Create onlyLive collaborative editing in Studio, with no files.Building, level design and art, with several people in one place.No review of every change, and no diffs. Studio's Version History is your undo.

Script Sync's limits are in its own docs6, and Studio's Version History is the undo for a Team Create session7. Argon has its own repository8.

What if you already built half a game in Studio and want to bring it into Git? That is what rojo syncback does. Introduced in Rojo 7.7 (the latest GitHub release on 2026-11-23 is v7.7.1, published 2 Oct 2026), rojo syncback default.project.json --input my-place.rbxl reads a saved place file and writes its scripts, models and properties back into the folders mapped by your project file. You can control which properties and paths sync back with syncbackRules in default.project.json.

Syncback can overwrite and remove files in your source folders. Start from a clean branch and run it with --dry-run --list first: it prints what it would add or remove and writes nothing. Run it for real only when that list looks right, then check git diff before you commit.

Beacon Yard pins Rojo 7.5.1 in rokit.toml so every milestone log and command matches one fixed version. Because 7.5.1 predates syncback, running it on this repo's pinned tool prints an error until you bump the pin to 7.7.1 (the Toolchain lesson shows how to bump a pin cleanly):

Evidence, figure 3.1rojo-commands.log
$ rojo syncback --help   (syncback arrived in Rojo 7.7, per the Creator Docs)
error: Found argument 'syncback' which wasn't expected, or isn't valid in this context
 
USAGE:
    rojo.exe [OPTIONS] <SUBCOMMAND>
 
For more information try --help
exit 2

You want rojo syncback to turn an existing Studio place into project files. Beacon Yard pins Rojo 7.5.1, while the latest release is 7.7.1. What happens if you run it without bumping the pin?

  1. Rojo 7.5.1 reports that it does not know the syncback command; you need Rojo 7.7 or later
  2. It works and creates src/
  3. It publishes the place
  4. It asks you to log in
Answer

Rojo 7.5.1 reports that it does not know the syncback command; you need Rojo 7.7 or later. The log shows `Found argument 'syncback' which wasn't expected` for 7.5.1. Syncback arrived in Rojo 7.7, so you raise the pin in rokit.toml to 7.7.1 and run rokit install first.

Open this step in lesson mode · Link to this step · This confused me

4Branching strategy, tags and worktrees

In Module -1 you learned commits and branches. On a real game, a branching strategy keeps main always buildable and ready to ship9:

  • main stays green. Never experiment directly on main. Every change lands through a short-lived branch and a pull request.
  • One branch, one job. Name branches type/short-topic, such as fix/coin-debounce or feat/shield-hud. Small branches finish in hours or a couple of days, so they rarely collide.
  • Tags mark milestones and releases. A tag never moves. Beacon Yard tags every milestone from m00-baseplate to m14-ship, and studios tag releases like v1.4.0.
  • Worktrees let you inspect another tag without disturbing your work. git worktree add ../yard-m03 m03-coins-count opens a second folder on that tag while your branch stays untouched.

Here is Beacon Yard's real history, including the diff between m12-money and m13-art-pass, and a worktree check:

Evidence, figure 4.1git-milestones.log
$ git tag --list "m[0-9][0-9]-*"
m00-baseplate
m01-first-parts
m02-the-pad
m03-coins-count
m04-two-sides
m05-the-round
m06-drone-wrench
m07-feel
m08-crawler
m09-react-shop
m10-memory
m11-two-places
m12-money
m13-art-pass
m14-ship
 
$ git diff --stat m12-money m13-art-pass | tail -1
 45 files changed, 648 insertions(+), 158 deletions(-)
 
$ git diff m02-the-pad m03-coins-count -- src/shared/Config.luau
diff --git a/src/shared/Config.luau b/src/shared/Config.luau
new file mode 100644
index 0000000..cbb119c
--- /dev/null
+++ b/src/shared/Config.luau
@@ -0,0 +1,13 @@
+--!strict
+
+-- One module owns every gameplay number, so the server and the client
+-- cannot drift apart. A price, a timer or a coin value changed here is
+-- the value every other script reads. Ids that belong to a Roblox account
+-- are not gameplay numbers; they live in Ids.luau.
+
+local Config = {
+	COIN_VALUE = 5,
+	COIN_RESPAWN_SECONDS = 4,
+}
+
+return Config
 
$ git worktree add ../yard-m03 m03-coins-count
Preparing worktree (detached HEAD 557d2f2)
HEAD is now at 557d2f2 Pay coins on the server with a debounce
$ git -C ../yard-m03 log --oneline -1
<hash> Pay coins on the server with a debounce
$ git worktree remove ../yard-m03
removed

Both sidesRemember: Git commits and branches is save points and a parallel save file.

Read the log. How many files does the m13-art-pass milestone change compared with m12-money?

Answer

45 files. git diff --stat m12-money m13-art-pass reports 45 files changed, 648 insertions and 158 deletions. Keeping changes in text files lets reviewers read diffs like that.

Open this step in lesson mode · Link to this step · This confused me

5Merge practice: when two branches touch the same line

Suppose you branch off main to raise COIN_VALUE from 5 to 7 in src/shared/Config.luau. Meanwhile a teammate merges a branch that raised COIN_VALUE from 5 to 6. When you run git merge main, Git cannot guess which price you want, so it stops and writes conflict markers into the file:

luau
local Config = {
	ROUND_SECONDS = 40,
<<<<<<< HEAD
	COIN_VALUE = 7,
=======
	COIN_VALUE = 6,
>>>>>>> main

Resolving a conflict is four calm steps:

  1. Read both halves: HEAD is your branch (7); the lower half is main (6).
  2. Decide the right value (ask your teammate if needed), delete the three marker lines (<<<<<<<, =======, >>>>>>>), and leave only clean Luau.
  3. Run your checks (stylua --check ., selene src tests, and Play) to prove the resolved file still works.
  4. Stage and finish the merge: git add src/shared/Config.luau and git commit.

Text files merge cleanly like this. Binary place files do not: two edits to a .rbxl collide on the whole file, which is why .gitignore keeps built places, local ids and downloaded packages out of Git.

# Rojo output and Studio files
build/
*.rbxl
*.rbxlx
*.rbxl.lock
sourcemap.json
 
# Your own Roblox ids. See src/shared/Ids.luau.
src/shared/Ids.local.luau
 
# Wally packages
Packages/
ServerPackages/
 
.DS_Store
 
# Built from your ids by scripts/gen-assets.mjs
assets/roblox/*.rbxmx
assets/materials/*.rbxmx
Figure 5.1

Quick recap from Setup: which of these does Beacon Yard keep out of Git?

  1. build/beacon-yard.rbxlx
  2. src/shared/Ids.local.luau
  3. ServerPackages/
  4. wally.lock
Answer

build/beacon-yard.rbxlx; src/shared/Ids.local.luau; ServerPackages/. The built place, your local ids and the downloaded packages are ignored. wally.lock is committed on purpose, to pin package versions.

git merge main stops with a conflict in src/shared/Config.luau. Put the resolution steps in order.

  1. Choose the right value and delete all three marker lines
  2. Run git add src/shared/Config.luau and git commit
  3. Open Config.luau and read both sides of the conflict markers
  4. Run checks and verify the game still builds and runs
Answer

1. Open Config.luau and read both sides of the conflict markers 2. Choose the right value and delete all three marker lines 3. Run checks and verify the game still builds and runs 4. Run git add src/shared/Config.luau and git commit. Always remove the conflict markers, check that the resolved code formats, lints and runs, then stage the file and commit the merge.

Open this step in lesson mode · Link to this step · This confused me

6Build it: branch, sync and resolve a conflict

Build along

m13-art-pass

  • src/shared/Config.luau
  1. In your existing Beacon Yard clone, run git switch -c practice/coin-tuning, then rojo serve and connect the Studio plugin.

    You should see git status is clean, and you are on a new branch named practice/coin-tuning.

  2. Add a comment line above COIN_VALUE in src/shared/Config.luau and save it. Select Config in Studio Explorer to see the live sync.

    You should see ReplicatedStorage.Shared.Config updates in Explorer without rebuilding.

  3. Run git diff, then stage and commit: git add src/shared/Config.luau and git commit -s -m "docs(config): note coin value".

    You should see git diff shows one added line, and git log -1 shows your commit on practice/coin-tuning.

  4. Switch back to a second branch (git switch -c practice/coin-alt m13-art-pass), edit the same line in src/shared/Config.luau with a different comment, commit it, and run git merge practice/coin-tuning. Resolve the conflict, run stylua --check ., then finish the merge.

    You should see git merge practice/coin-tuning stops with a conflict in src/shared/Config.luau; after you edit out the markers, git add and git commit complete the merge cleanly.

  5. Clean up: switch back and run git branch -D practice/coin-tuning practice/coin-alt.

    You should see You are back on your starting branch and the two practice branches are gone.

Open this step in lesson mode · Link to this step · This confused me

7Challenges

Level 1, Apprentice

Challenge

Without opening Studio, say where each source folder lands.

Start from
The game at milestone m13 (download)

Done means

  • You named the Studio location of src/shared, src/server, src/client and src/loading from default.project.json

Hints

  1. Look for each $path value in the file.
  2. Tests live at ReplicatedStorage.GameTests.

Level 2, Builder

Challenge

Sync one comment into Studio and take it out again.

Start from
The game at milestone m13 (download)

Done means

  • You saw your comment appear in Explorer under ReplicatedStorage.Shared.Config
  • You removed it, and git status is clean

Hints

  1. If nothing changes, check that the plugin says Connected.
  2. A script edited only in Studio is replaced the next time Rojo syncs, so edit the file.
Where does it break?“A photocopier from folder to Studio” is a good picture of rojo. Where does it stop being true?

It breaks here. A photocopier never touches the original, and Rojo by default never copies back either: an edit typed only into Studio is overwritten by the next sync from disk.

The true model. Rojo serve watches the repository and pushes changes into the place through the Studio plugin. The files are the source of truth. Hand-built parts and terrain that are not in the project file stay only in the place file.

You type a new line into Config in Studio's script editor while Rojo is connected, and never save the file on disk. What happens at the next sync?

  1. The disk file wins and your Studio-only line is overwritten
  2. Your line is saved to src/ for you
  3. Rojo merges both
  4. The sync stops
Answer

The disk file wins and your Studio-only line is overwritten. Files on disk are the source of truth. A change made only in Studio is a draft that the next sync replaces, so edit the file.

Level 3, Professional

Challenge

Add a module on disk and watch it appear. This is the game's own challenge, challenges/rojo-and-git.luau, and it starts from m03-coins-count.

Start from
The game at milestone m03 (download)
Grade it
To grade work from an earlier milestone, apply your challenge changes to a checkout based on m14-ship, which includes the Course Runner. In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("rojo-and-git", "rojo-and-git-probe") in the server command bar. Copy the pass code from Output.

Done means

  • A new module src/server/SyncProbe.luau appears as ServerScriptService.Server.SyncProbe without rebuilding the place
  • SyncProbe.stamp() returns rojo-sync
  • The test prints TEST PASS for sync_probe_synced and sync_probe_stamp

Hints

  1. A new file under src/server becomes a child of Server, named after the file.
  2. Press Play and run the check from the server command bar.
  3. The module and the exact check are in challenges/solutions/rojo-and-git.md.

You finished the SyncProbe challenge. What should you do with the file before your next commit?

  1. Delete it, unless you meant to keep it, and never commit the built place
  2. Commit it with build/ so the place travels with it
  3. Rename it Config.luau
  4. Move it into ReplicatedStorage by hand
Answer

Delete it, unless you meant to keep it, and never commit the built place. The solution notes say to delete the probe when you are done. The built place is ignored output and is never committed.

Open this step in lesson mode · Link to this step · This confused me

8Recap

Retiring the analogy

You no longer need “a photocopier from folder to studio”. Rojo serve watches the repository and pushes changes into the place through the Studio plugin. The files are the source of truth. Hand-built parts and terrain that are not in the project file stay only in the place file.

Recap

  1. default.project.json maps folders to services; rojo serve copies saves into Studio one way, rojo build writes a place you never commit, and rojo sourcemap feeds the language server.
  2. Rojo, Argon, Studio Script Sync and Team Create put the source of truth in different places; Roblox recommends partially managed Rojo for most teams that use Git.
  3. Git gives save points, branches and tags. Keep output, ids and downloaded packages out of commits, and review one-line diffs.

Rojo is a photocopier from folder to Studio, until a photocopier never touches the original, and Rojo by default never copies back either: an edit typed only into Studio is overwritten by the next sync from disk.

Git commits and branches is save points and a parallel save file, until two save files can never be combined in a game, but Git merges branches line by line; and when the file is binary, such as a place file, Git cannot merge it at all and one version must win.

Next Groups, permissions and asset ownership

Open this step in lesson mode · Link to this step · This confused me