GitKraken Desktop Documentation

Stage, Unstage, and Ignore Files in GitKraken Desktop

Last updated: January 2026

Learn how to stage files, review changes, and manage tracked content in GitKraken Desktop.


Stage Files and Changes

Staging prepares your file changes for commit. To begin:

  1. Select the //WIP node in the Commit Graph to open the Commit Panel.
Working directory changes shown in GitKraken Desktop with the //WIP node selected in the commit graph
Select the //WIP node to view your working changes.
  1. Hover over a file and click to stage it.
GitKraken Desktop showing unstaged files with the 'Stage File' button visible next to markdown.md
Click Stage File on hover.

You can also:

  • Click to stage all at once
  • Click a file to view its diff and selectively stage lines:
    • Highlight lines
    • Right-click and select Stage selected lines
Context menu in GitKraken Desktop showing 'Stage selected lines' for staging specific changes from the diff view.
Right-click to stage specific lines or hunks.

Tip: Use keyboard shortcuts to speed up staging actions.


Unstage Files or Lines

To unstage a file:

  1. Select the file under the Staged Files section
  2. Click
The staged files list in GitKraken Desktop showing the Unstage File button for a selected file.
Click Unstage File to move it back to working changes.

To unstage lines or hunks, click a file to view its diff and right-click the content to unstage.

The file diff view in GitKraken Desktop showing the Unstage Hunk option with a pointer from the staged file list.
Unstage specific hunks directly from the diff view.

To unstage all:

  • Click

Discard Changes

To discard changes across your working directory:

  1. Select the //WIP node
  2. Click the trash icon to discard all or selected files
Discard all changes button highlighted above a list of unstaged files.
Discard changes for all or multiple selected files.

You can also:

  • Multi-select files and right-click to Discard selected
  • Discard lines/hunks from the file diff
  • Right-click within the staging panel and choose Discard Changes
Discard hunk button highlighted above a section of modified code.
Discard selected hunks of code.

Ignore Files

To prevent Git from tracking certain files, add them to a .gitignore file.

Right-click a file and select Ignore:

Context menu with Ignore options for a selected file in the Tree view
Choose ignore rules based on file, extension, or folder.

You can choose to:

  • Ignore the selected file only
  • Ignore all files with that extension
  • Ignore all files in the directory

GitKraken Desktop will add the rule to a .gitignore file at the root of your repo. Nested .gitignore files are not parsed.

Note: GitKraken Desktop only uses the root-level .gitignore file.

Ignore Previously Tracked Files

If a file is already tracked, you’ll see two options:

Dialog with options to ignore, ignore and stop tracking, or cancel for a selected tracked file
Prompt showing options to ignore a file already tracked by Git.

Selecting Ignore will add the corresponding entry to the .gitignore file, but Git will continue tracking the file.

Untracked .gitignore and test.txt files displayed under the obj folder in the Unstaged Files section.
Ignore file but keep it tracked by Git.

Selecting Ignore and Stop Tracking will add the entry and remove the file from the Git index, so Git stops tracking it.

.gitignore file shown as unstaged; test.txt under obj folder shown as staged for removal
Ignore file and remove it from Git tracking.
Have feedback about this article? Did we miss something? Let us know!
On this page