|
| 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 | + |
0 commit comments