Files
2026-11-16 04:21:21 -07:00

3.4 KiB

Git guide

RuneStone · User guide

This guide explains how to review changes, stage files, commit, push, and pull with Git in RuneStone.

Git is part of RuneStone and is on by default. It needs the git program on the system path. To turn it off, see Turn features on or off.

Review and stage changes

  1. Open the root folder of the repository as the workspace.
  2. Select Source control in the navigation buttons at the top of the side pane.
  3. Select a file to open its diff in an editor tab. Open file in that tab opens the file in the editor.
  4. Select the plus button beside a file to stage it, or the minus button to unstage it. The button beside a group stages or unstages all files in that group.

Source control shows the current branch and the Changes section with two groups. Staged changes go into the next commit. Unstaged changes holds the files that still need review or staging. A file shows in both groups when only part of its content is staged. Unstage keeps the content of the working file.

Source control reads the repository again after each change in the workspace, also in the .git folder, and when the window gets focus. Refresh source control reads it at once. A diff tab shows the file as it was when you selected it. Select the file again to update the diff. Git reads the files on disk, so save your edits first.

Commit

  1. Stage the files for the commit.
  2. Enter a commit message.
  3. Select Commit staged, or press Ctrl+Enter (⌘+Enter on macOS).

A commit contains only the staged changes. Git hooks and signing settings apply as usual. Set your author name, email, and signing tools in Git outside RuneStone. If a hook stops the commit, the error stays visible, and the message stays in the field.

Push and pull

Push to the upstream branch and Pull from the upstream branch use the upstream branch of the current branch and your current Git sign-in. Pull accepts only a fast-forward update. It stops when local changes or diverging commits prevent that update. RuneStone never forces a push, and it does not set an upstream branch.

Commit graph

Select Show Git graph in Source control, or run Show Git graph from the command palette (Ctrl+Shift+P). The graph opens in an editor tab.

The graph shows the latest 100 commits with their branches, tags, IDs, authors, dates, and messages. Dashed lines continue to parents outside these 100 commits. Select a commit to see its changed files, then select a file to see its diff. The arrow keys, Home, and End move through the commits.

Line history

While a saved text file is open, the status bar shows the author and the date of the last commit for the line of the cursor. A new or changed line can show no author until you commit it.

Limits

  • Parent repositories and linked worktrees with their metadata outside the workspace do not work. Open the repository root.
  • RuneStone does not include a Git program.
  • Create repositories, switch branches, resolve conflicts, and set remotes with Git outside RuneStone. RuneStone has no discard, reset, or force push.
  • A Git operation stops after 30 seconds or 2 MiB of output. If an operation stops, refresh to see its result before you do it again.
  • The diff of a new text file shows at most 512 KiB. A binary file shows a notice instead of a diff.