Skip to main content

Committing Changes

How to select and commit changes using Treq's visual tools.

Treq has no separate staging area. You select the files or hunks you want in a commit, then commit them directly. Treq's diff viewer makes this process visual, showing which changes are selected for the next commit and which aren't.

Accessing the Diff Viewer

Open the diff viewer from the dashboard by clicking any changed file in the Git Changes section, or from a workspace session by clicking the Changes tab. The top section shows your file tree with selection checkboxes. The bottom section displays the diff with Monaco Editor syntax highlighting.

Creating Commits

Select the files you want to include, then write your commit message in the text area. Follow conventional commit format: type(scope): description. Common types include feat for features, fix for bugs, docs for documentation, and refactor for restructuring. Keep the first line under 72 characters.

Click Commit or press Cmd+Enter to create the commit. Treq validates that you have selected files and a non-empty message before proceeding.

Discarding Changes

Deselecting a file removes it from the next commit without losing changes. Discarding permanently deletes changes. Right-click a file, select "Discard Changes," then confirm. This cannot be undone.