Lesson 1 of 8
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.
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
Step 1 of 8
A 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"
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?
Press 1 to 4 to choose, Enter to check.
Step 2 of 8
The 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.

Select a numbered pin, or a row below, to read what it marks.
Saves under src/ flow into this place.
Evidencerojo-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.
Evidencerojo-commands.log
$ rojo sourcemap default.project.json -o sourcemap.json
Created sourcemap at sourcemap.json
exit 0
Evidenceci-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?
Press 1 to 4 to choose, Enter to check.
Step 3 of 8
Alternatives 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
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Rojo | A 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. |
| Argon | A 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 Sync | Roblox'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 only | Live 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):
Evidencerojo-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?
Press 1 to 4 to choose, Enter to check.
Step 4 of 8
Branching 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:
mainstays green. Never experiment directly onmain. Every change lands through a short-lived branch and a pull request.- One branch, one job. Name branches
type/short-topic, such asfix/coin-debounceorfeat/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-baseplatetom14-ship, and studios tag releases likev1.4.0. - Worktrees let you inspect another tag without disturbing your work.
git worktree add ../yard-m03 m03-coins-countopens 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:
Evidencegit-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?
Step 5 of 8
Merge 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:
local Config = {
ROUND_SECONDS = 40,
<<<<<<< HEAD
COIN_VALUE = 7,
=======
COIN_VALUE = 6,
>>>>>>> main
Resolving a conflict is four calm steps:
- Read both halves:
HEADis your branch (7); the lower half ismain(6). - Decide the right value (ask your teammate if needed), delete the three marker lines (
<<<<<<<,=======,>>>>>>>), and leave only clean Luau. - Run your checks (
stylua --check .,selene src tests, and Play) to prove the resolved file still works. - Stage and finish the merge:
git add src/shared/Config.luauandgit 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
Quick recap from Setup: which of these does Beacon Yard keep out of Git?
Press 1 to 4 to choose, Enter to check.
git merge main stops with a conflict in src/shared/Config.luau. Put the resolution steps in order.
- Choose the right value and delete all three marker lines
- Run git add src/shared/Config.luau and git commit
- Open Config.luau and read both sides of the conflict markers
- Run checks and verify the game still builds and runs
Step 6 of 8
Build it: branch, sync and resolve a conflict
Build along
src/shared/Config.luau
In your existing Beacon Yard clone, run
git switch -c practice/coin-tuning, thenrojo serveand connect the Studio plugin.You should see git status is clean, and you are on a new branch named practice/coin-tuning.
Add a comment line above
COIN_VALUEinsrc/shared/Config.luauand save it. SelectConfigin Studio Explorer to see the live sync.You should see ReplicatedStorage.Shared.Config updates in Explorer without rebuilding.
Run
git diff, then stage and commit:git add src/shared/Config.luauandgit 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.
Switch back to a second branch (
git switch -c practice/coin-alt m13-art-pass), edit the same line insrc/shared/Config.luauwith a different comment, commit it, and rungit merge practice/coin-tuning. Resolve the conflict, runstylua --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.
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.
Step 7 of 8
Challenges
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
Meet the criteria above, then record your own result. No test grades this check.
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
Meet the criteria above, then record your own result. No test grades this check.
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?
Press 1 to 4 to choose, Enter to check.
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 rungame.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
You finished the SyncProbe challenge. What should you do with the file before your next commit?
Press 1 to 4 to choose, Enter to check.
Step 8 of 8
Recap
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
- 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.
- 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.
- 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.
Queued for review