The Local Changes panel is where you view, stage, and commit changes in your working directory. It’s one of the main panels in ugit for managing your uncommitted work.

The panel is split into two sections:
| Section | Description |
|---|---|
| Unstaged Files | Files you’ve modified but haven’t prepared for commit |
| Staged Files | Files ready to be committed |
Below these sections is a commit form where you can enter a commit message and create a commit.
This section shows files that have been modified but not yet staged. These changes exist only in your working directory.
Status indicators:
M — ModifiedD — DeletedC - ConflictedA — Added (new file)This section shows files that have been staged and are ready to be committed. These changes will be included in your next commit.
Click Stage All to move all unstaged files to the staged list.
You can drag and drop files between the Unstaged and Staged lists:
You can also drag multiple files at once.
Click on any file in either list to view its changes in the Diff Viewer on the right.
The diff viewer shows:
Move the files you want to commit to the Staged list.
Type a descriptive message in the commit input field.
ℹ️ For longer descriptions, click the description toggle to expand a larger text area.
Click Commit to create the commit with your staged changes.
If your branch is behind the remote, ugit will prompt you:
In Preferences you can define a list of branch names to prevent commits for. This is used to prevent committing to a branch that requires a separate Pull Request branch.
Right-click on an unstaged file and select Discard Changes.
Click Discard All to remove all unstaged changes.
⚠️ Warning: This permanently deletes your changes. This action cannot be undone.
Right-click on any file for additional options:
| Action | Description |
|---|---|
| Discard | Remove changes to this file |
| Stage | Move file to staged list |
| Unstage | Move file back to unstaged |
| Open in Editor | Open the file in your code editor |
| Open in Explorer | Show file in file explorer |
| Action | Shortcut |
|---|---|
| Stage selected | Ctrl+S |
| Unstage selected | Ctrl+U |
| Commit | Ctrl+Enter |
Make small, frequent commits with clear messages. This makes it easier to track changes and revert if needed.
Always review your changes in the Diff Viewer before committing to ensure you’re including exactly what you intend.