Lesson 6 of 8
GitHub: fork, clone, push, pull requests, CI checks
Learn GitHub from zero by forking the Beacon Yard Roblox game repository: clone, push, open a pull request, read CI checks, and file a useful issue.
By the end you can
- Fork the Beacon Yard repository, clone your fork, and sign Git in to GitHub.
- Push a branch, open a pull request in your fork, and read its CI checks, including a failing one.
- Keep your fork up to date, and ask for help with a well-written issue.
Before this: Roblox and GitHub accounts, 2-step verification, age checks and safety, Git from zero: commits, diffs, branches, undo
Step 1 of 17
From one laptop to everywhere
Your practice repository from the last lesson lives in one folder on one computer. If that computer breaks, the history goes with it. Nobody else can see your work, review it or build on it.
GitHubGitHubA website that hosts Git repositories and adds pull requests, issues and automatic checks.Think of it as a shared warehouse for save folders, with a notice board and a quality inspector. hosts Git repositories online. A copy of your repository on GitHub is a remoteRemoteAnother copy of a repository somewhere else, which you can push to and pull from.Think of it as a copy of the save folder kept in the shared warehouse.: another place the same history lives. You push commits up to it and pull commits down from it. GitHub adds what Git lacks on its own: pull requests for discussing changes, issues for tracking problems, and automatic checks that test every change.
Beacon Yard itself lives on GitHub. In this lesson you get your own copy of the whole game.
What is a remote?
Press 1 to 4 to choose, Enter to check.
Step 2 of 17
Fork, clone, push, pull request
Four words describe the whole journey:

Fork once on GitHub, clone once to your computer, then push as often as you like.
- A forkForkYour own copy of someone else's repository, on GitHub, under your account.Think of it as your own photocopy of the master plans that you may mark up freely. is your own copy of someone else's repository, on GitHub, under your account. You can change it freely.
- A cloneCloneA copy of a repository on your computer, already linked to the remote it came from.Think of it as photocopying the whole save folder, history and all. is a copy of a repository on your computer, already linked to the remote it came from.
- To push is to send your new commits from your computer to the remote.
- A pull requestPull requestA request to merge one branch into another, with a page for discussion and checks.Think of it as a handover note stapled to your branch: please review and merge. (PR) asks for a branch to be merged, with a page for discussion and checks.
Match each word to where it happens.
Step 3 of 17
Fork Beacon Yard
Sign in to GitHub and open the Beacon Yard game repository, https://github.com/ReimagineMedias/beacon-yard. Click Fork near the top right. On the next page keep your account as the owner and the name beacon-yard, then click Create fork 1.
A few seconds later you are looking at YOUR-NAME/beacon-yard, with a line under the name: forked from ReimagineMedias/beacon-yard. That repository is yours.
Fork: your own copy of Beacon Yard, under your account.
Turn on Actions in your fork now. GitHub leaves automatic checks switched off on a new fork, so nothing would run later. Open the Actions tab of your fork and click I understand my workflows, go ahead and enable them. The checks are the game's own, and they only ever run in your fork.
Build along
Fork the course repository into your account.
You should see Your browser shows YOUR-NAME/beacon-yard with 'forked from ReimagineMedias/beacon-yard' under the title.
Open your fork's Actions tab and enable workflows.
You should see The Actions tab of your fork lists a workflow called ci in its left sidebar, and no banner says workflows are not running.
Step 4 of 17
Clone your fork
On your fork's page, click the green Code button, choose the HTTPS tab and copy the URL. Then, in a terminal:
cd ~/Code
git clone https://github.com/YOUR-NAME/beacon-yard.git
cd beacon-yard
Git downloads every file and the entire history into a new beacon-yard folder 2. Open that folder in VS Code. Inside is src/shared/Config.luau, the real version of the file you have been practising on.
Forking the game repository, copying the clone address and cloning it into Code. The transcript below lists every action.
Build along
Code/beacon-yard
Clone your fork into
Code, open it in VS Code, and rungit log --onelinein the integrated terminal.You should see VS Code's Explorer shows the beacon-yard folder with src, tests, default.project.json and README.md, and git log --oneline in its terminal lists the game's commits.
Step 5 of 17
Let Git sign in to GitHub
Cloning a public repository needs no sign-in, but pushing does. GitHub does not accept your account password for Git 3. Instead, a helper signs you in through the browser once and remembers it 4.
Windows: Git Credential Manager. Already installed with Git for Windows. The first time you push, a browser window asks you to sign in to GitHub and authorise Git. After that, pushes just work.
macOS: GitHub CLI. Install the GitHub CLI from cli.github.com 5, then run gh auth login. Choose GitHub.com, then HTTPS, and answer Y when asked whether to authenticate Git with your GitHub credentials. Finish in the browser.
GitHub Desktop. Sign in inside the app, and it handles Git's credentials for itself 6.
git push asks for a username and password, and your GitHub password is rejected. Why?
Press 1 to 4 to choose, Enter to check.
Step 6 of 17
origin and upstream
A clone remembers where it came from. Ask it:
git remote -v
origin https://github.com/YOUR-NAME/beacon-yard.git (fetch)
origin https://github.com/YOUR-NAME/beacon-yard.git (push)
origin is the conventional name for the remote you cloned from: your fork. It helps to add the course repository too, under the conventional name upstream, so you can fetch new lessons' changes later:
git remote add upstream https://github.com/ReimagineMedias/beacon-yard.git
You push to origin. You only ever pull from upstream.
Which remote do you push your branches to?
Press 1 to 4 to choose, Enter to check.
Step 7 of 17
Push a branch
Make a small, real change on a branch. Open src/shared/Config.luau, change COIN_RESPAWN_SECONDS from 4 to 3, save, and in the terminal:
git switch -c faster-coins
git commit -am "chore: respawn coins after 3 seconds"
git push -u origin faster-coins
Look at the message. Beacon Yard's checks read every commit message in a pull request, and a message must look like type: lowercase description, for example fix: stop coins respawning twice. This style is called Conventional Commits. The type is one of feat, fix, docs, style, refactor, perf, test, build, ci, chore or revert. The part after the colon starts with a lowercase letter and has no full stop at the end. chore fits a small tweak like this one. Practise your commit messages in this shape from now on.
-u tells Git to remember that your local faster-coins goes with origin's faster-coins, so next time a plain git push is enough. GitHub's reply includes a line starting remote: Create a pull request for 'faster-coins' on GitHub by visiting:, followed by a link.
Build along
src/shared/Config.luau
Make the change, commit it on a new branch with the message above and push it to origin.
You should see The push finishes, and your fork's page on GitHub shows a yellow banner: faster-coins had recent pushes.
Step 8 of 17
Open a pull request in your fork
Good place for a break. Your answers and progress are saved in this browser, so you can stop here and come back to this step. Tick what you can do now; if something is shaky, go back one step first.
Checkpoint
0 of 3 checked
A pull request is where a change gets reviewed before it reaches main. Professional teams merge almost nothing without one, even their own work.
Click Compare & pull request on the banner. Check the base before anything else. For a fork, GitHub suggests the course repository as the base. For practice, change base repository to YOUR-NAME/beacon-yard and base to main, so the pull request stays inside your fork 7.
Give it a title, and describe what changed and why in the box below. Then click Create pull request.
For practice, point the pull request at your own fork.
You are practising, and the pull request page shows base repository: ReimagineMedias/beacon-yard. What do you do?
Press 1 to 4 to choose, Enter to check.
Step 9 of 17
The inspector at the door
A few seconds after you open the pull request, a box near the bottom says Some checks haven't completed yet. These are Beacon Yard's continuous integrationContinuous integration (CI)Programs a server runs on every push to check the project still passes its tests.Think of it as an inspector who runs the same checklist on every delivery. (CI) checks: programs GitHub runs on a fresh Linux machine for every push.
| In the picture | In Roblox |
|---|---|
| A delivery arriving | A push or a pull request |
| The inspector's checklist | The CI jobs: format, lint, build and tests |
| A green stamp | Every job exited with code 0 |
Think of an inspector standing at the workshop door. Nothing reaches main without passing them. They run the same list of checks every time, without getting tired or skipping one, and they write down exactly what failed.
Think of it as An inspector at the workshop door
Beacon Yard's list lives in a file in the repository:
jobs:
commits:
name: commit subjects
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- name: Validate pull request commit subjects
run: node scripts/check-commit-range.mjs ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
format:
name: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: CompeyDev/setup-rokit@1d9390883f7ebce19d48f5b8d006e11d387c92ab # v0.2.1
with:
version: v1.2.0
- name: stylua --check .
run: stylua --check .
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: CompeyDev/setup-rokit@1d9390883f7ebce19d48f5b8d006e11d387c92ab # v0.2.1
with:
version: v1.2.0
- name: selene src tests
run: selene src tests
Each job is one check: commit subjects (pull requests only) checks that every commit message in the pull request has the type: lowercase description shape, format runs StyLua to confirm the house style, lint runs Selene on src, tests and unit, type check runs luau-lsp to verify Luau types, id guard fails if a real Roblox id has slipped into a file, challenge index checks that every challenge test and solution stays in sync, build checks that Rojo can build the game and test places, every milestone tag repeats checks across each tagged version, and actions pinned verifies the workflow's own dependencies. That makes nine jobs. A green tick means the command exited with 0; a red cross means it did not 8.
If nothing appears, open your fork's Actions tab. If it says workflows are not running on this fork, you missed the enable step after forking: click the button to enable them, then push again.
What does a green tick next to 'format' tell you?
Press 1 to 4 to choose, Enter to check.
Step 10 of 17
Read a failing check
Sooner or later a check fails. Clicking Details next to it opens the job's log, with every step listed; the failing one is expanded 9. Here is a real StyLua 2.1.0 failure, as the format check prints it:
Diff in src/shared/Config.luau:
1 1 | local Config = {
2 2 | ROUND_SECONDS = 40,
3 |- COIN_VALUE=10,
3 |+ COIN_VALUE = 10,
4 4 | }
It is a diff, just like git diff. The - line is what you wrote and the + line is what StyLua wants: spaces around =. Nothing is wrong with the game. The house style is simply enforced.
The job you are most likely to meet first is commit subjects. If a commit message in the pull request breaks the rule, its log lists each offending commit, for example:
Invalid commit subject: "Respawn coins after 3 seconds"
the subject must use type(scope)?: lowercase description.
Example: ci: check that every commit follows conventional commits
The fix is a better message, not different code. Reword the commit (git commit --amend -m "chore: respawn coins after 3 seconds" for the latest one) and push again; if you amended a commit you had already pushed, Git asks for git push --force-with-lease, which is fine on your own practice branch. Read a log from the first red line, not the last. Later errors are often knock-on effects of the first one.
Both sidesRemember: Continuous integration is an inspector at the workshop door.
Details opens the log. Start reading at the first red line.
The format check shows the diff above. Fix the line so the check passes.
Press 1 to 5 to choose, Enter to check.
Step 11 of 17
Where the inspector idea breaks
A real inspector might notice something odd that is not on the list. CI never does. It runs exactly the commands in ci.yml and nothing else.
Where does it break?“An inspector at the workshop door” is a good picture of continuous integration. Where does it stop being true?
It breaks here. The inspector only checks what is on the checklist, so a neatly formatted change that sets COIN_VALUE to 5000 still gets a green stamp.
The true model. CI runs commands on a fresh machine for every push and reports each command's exit code. A pass proves only what those commands test, so the project is only as safe as its tests.
You set COIN_VALUE = 5000, neatly formatted. Every check goes green. What does that prove?
Press 1 to 4 to choose, Enter to check.
Step 12 of 17
Merge, then pull
When the checks are green, click Merge pull request and then Confirm merge. main in your fork on GitHub now has your commit, but main on your computer does not know yet. Bring it down:
git switch main
git pull
git pull fetches new commits from the remote and merges them into your current branch. Your local main now matches GitHub, with COIN_RESPAWN_SECONDS = 3.
Build along
src/shared/Config.luau
Merge your pull request on GitHub, then switch to main and pull on your computer.
You should see git log --oneline on main shows 'chore: respawn coins after 3 seconds' near the top.
Step 13 of 17
Keep your fork up to date
The course repository will gain fixes and new milestones over time. Your fork does not update itself. There are two ways to catch up:
- On your fork's GitHub page, click Sync fork, then Update branch, and afterwards
git pullon your computer 10. - From the terminal, with
mainchecked out:git pull upstream main, thengit pushto update your fork on GitHub.
If you changed the same lines the course changed, you will get a merge conflict, and you already know how to resolve one.
Order the terminal route for catching up with the course repository.
- git push
- git switch main
- Resolve any conflicts and commit
- git pull upstream main
Step 14 of 17
Issues, and asking the course for help
An issueIssueA GitHub page for one problem, question or idea, with a discussion under it.Think of it as a numbered ticket on the notice board. is a GitHub page for one problem, question or idea, with a discussion under it 11. Every step of this course has a this confused me link. It opens a new issue on the course repository with the lesson and step already filled in, using GitHub's ability to prefill an issue from a link 12.
Those issues make the course better for everyone, so write them well:
- Search first. Someone may have asked already; add a comment there instead.
- Say what you expected and what actually happened, in a sentence each.
- Show what you tried, including commands and the exact error text, pasted as text in a code block, not as a photo.
- Say your system: Windows or macOS, and the version.
- Leave out anything personal: your real name, school, location, passwords, cookies and Roblox user ids.
The link fills in the lesson and step. You add what you expected, what happened and what you tried.
Which belong in a good 'this confused me' issue?
Press 1 to 5 to choose, Enter to check.
Step 15 of 17
Other ways to do the same things
Clone, push and open pull requests with...
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| git and the website | Git in the terminal for clone, commit and push; the website for forks, pull requests, checks and issues (what this lesson showed). | The default for learning, because every step is visible. | You switch between two places. |
| GitHub CLI (gh) | A command that forks, clones, opens pull requests and shows CI results without leaving the terminal: gh repo fork ReimagineMedias/beacon-yard --clone, gh pr create, gh pr checks. | You live in the terminal and want fewer browser trips. | One more tool to install and sign in to. |
| GitHub Desktop | Clone, branch, commit, push and Create Pull Request with buttons; its pull request button opens the browser for the final step. | You prefer buttons to commands. | The same trade-offs as for plain Git: fewer commands, and you cannot paste one from a tutorial. |
| VS Code | The Source Control view can push, pull and publish branches; GitHub's own extension adds pull requests inside the editor. | You want pull requests next to the code you are editing. | Needs the GitHub extension, and the website is still where checks and issues are easiest to read. |
You push with GitHub Desktop, and your teammate opens the pull request with gh pr create. Does that cause a problem?
Press 1 to 4 to choose, Enter to check.
Step 16 of 17
Challenges
Level 2, Builder
Challenge
Send a small change through your fork the way a team would, and wait for the checks.
- Start from
- Your fork and clone, with main up to date.
Done means
- A pull request inside your fork changes one value in Config.luau.
- Its commit message follows type: lowercase description, such as chore: respawn coins after 3 seconds.
- Its description says what changed and why in at least two sentences.
- Every CI check on it is green, including commit subjects, and it is merged into your fork's main.
Meet the criteria above, then record your own result. No test grades this check.
Level 2, Builder
Challenge
Break the format check on purpose, then read the log to find out why it failed and fix it.
- Start from
- A new branch in your clone.
Done means
- You push a commit that makes the format check fail on purpose (for example, remove the spaces around one =), with a message like test: break the format check.
- You open the failing job's log and find the diff that explains the failure.
- You push a fix with a message like fix: restore spaces around the equals sign, and the same pull request turns green without being closed and reopened.
Meet the criteria above, then record your own result. No test grades this check.
Step 17 of 17
Recap
Recap
- Fork once on GitHub, clone your fork once, then branch, commit and git push -u origin to send work up. origin is your fork; upstream is the course, which you only pull from.
- Open practice pull requests inside your fork: check the base repository first. CI checks are commands; green means exit code 0, and a failing log is read from its first red line.
- Keep your fork current with Sync fork or git pull upstream main. Ask for help with a searchable issue: expected, actual, what you tried, your system, nothing personal.
Continuous integration is an inspector at the workshop door, until the inspector only checks what is on the checklist, so a neatly formatted change that sets COIN_VALUE to 5000 still gets a green stamp.
Queued for review