Skip to content

Staging

You can use the Staging activity to review changes before committing your files. It supports staging individual files, unstaging all changes at once, and committing your changes.

To show the Staging activity, click its activity-bar icon or click Git > Staging.

Changed files are organized into the Unstaged section, the Staged section, or the Conflicts section. Each file displays a Git status badge, the file path, and a stage or unstage icon. The following table lists all Git status badges that appear next to each file.

BadgeDescription
ModifiedFiles with changes compared to the main branch.
UntrackedNew files, renamed files, or files moved to a new folder.
AddedFiles that were added to the repository.
ConflictFiles with changes that conflict with the main branch.
DeletedDeleted files, renamed files, or files moved from their original folder.

Click a file to view the changes made in the Diff viewer. For more information about the Diff viewer, see Diff viewer.

You can also discard all changes and undo a commit from the Unstaged section. To discard all changes made to files, click the Discard All Changes icon in the Unstaged section header. To undo a commit, click the Undo last commit icon.

Stage and unstage files

To stage or unstage a file, click the Stage icon or the Unstage icon next to the file. To stage or unstage all files, click the Stage All Unstaged Files icon or the Unstage All Files icon in the section header.

Staged files with unstaged changes will display a partial badge.

Commit and amend staged files

You can commit changes once your files are staged. To create a commit, complete the following steps.

  1. In the Staging activity, click Commit.
  2. Enter the commit message and optionally a description of the commit.
    Commit templates are loaded automatically if a .gitmessage file exists.
  3. Click Commit Staged File.

You can also amend files to your previous commit. To amend your files to a commit, complete the following steps.

  1. In the Staging activity, click Amend. Zide pre-fills the commit message from the previous commit.
  2. Click Amend Staged File.
  3. In the Amend Commit dialog, click Confirm.

You can skip pre-commit hooks in Advanced Options.