Skip to content

Commit a612048

Browse files
committed
add version control page
1 parent 344484a commit a612048

7 files changed

Lines changed: 60 additions & 1 deletion

File tree

docs/hosting.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export your game to publish on Itch.io, Steam, or anywhere on the web.
99

1010
This page is not relevant for singleplayer games.
1111

12+
> **Important:** Deployments use the code on your **remote main branch**.
13+
> **Commit** and **Push** all changes before deploying, or your live game will not have the latest changes.
14+
1215
## Dreamlab Cloud Hosting
1316

1417
If you're building your game on https://app.dreamlab.gg (or you've uploaded it after creating it), you can deploy your

docs/ingredients/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Script Ingredients",
3-
"position": 2,
3+
"position": 3,
44
"link": {
55
"type": "generated-index",
66
"description": "Example Behavior scripts showcasing various functionality."

docs/version-control.mdx

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
sidebar_position: 2
3+
title: Version Control
4+
---
5+
6+
# Version Control
7+
8+
Dreamlab includes integrated, Git-style version control. Use it to track file changes, review diffs and history, and manage branches — all within the editor.
9+
10+
---
11+
12+
## Basic workflow
13+
14+
1. **Click the Versions button** - Open the version control panel from the top bar.
15+
<img src="/img/version-control/nav.png" width="750" alt="Open Versions" />
16+
17+
2. **Stage changes** - Edited files appear under **Unstaged Files**. Stage the files you want to include in the commit.
18+
<img src="/img/version-control/stage.png" width="750" alt="Stage changes" />
19+
20+
3. **Commit** - Enter a concise message describing the change and click **Commit**.
21+
<img src="/img/version-control/commit.png" width="750" alt="Commit" />
22+
23+
4. **Push** - Click **Push** (top right) to upload your commits to the remote.
24+
<img src="/img/version-control/push.png" width="750" alt="Push to remote" />
25+
26+
> **Important:** Deployments read from the **remote main branch**. Committing is local; **your deployed game will not update until you Push**.
27+
28+
---
29+
30+
31+
## Feature reference — where to find things
32+
33+
- **Pull / Push** — Top-right of the Versions header.
34+
- Pull dropdown includes **Fetch & Hard Reset**.
35+
- Push dropdown includes **Force Push** (use with care).
36+
37+
- **Create / Switch Branch** — Center **branch dropdown** (the one showing your current branch name).
38+
39+
- **More options (⋯)** — Button **to the right of** the branch dropdown:
40+
- **Delete Branch**
41+
- **Tag actions** (Create Tag, Delete Tag)
42+
- **Stashing** (Stash Changes / manage stashes)
43+
- **View on Forgejo**
44+
- **Reset HEAD (Hard)**
45+
46+
- **Merge / Rebase** — Button **to the left of** the branch dropdown:
47+
- Merge another branch into the current branch
48+
- Rebase the current branch onto another branch
49+
50+
- **Commit history actions****Right-click any commit** in the history list to:
51+
- **Create branch at commit**
52+
- **Create tag at commit**
53+
- **Checkout this commit** (detached HEAD)
54+
- **Revert commit**
55+
- **Reset HEAD to this commit**
56+
169 KB
Loading

static/img/version-control/nav.png

147 KB
Loading
148 KB
Loading
154 KB
Loading

0 commit comments

Comments
 (0)