Skip to content

Stashes

You can use the Stashes activity to view all stashed changes in your repository.

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

Stashes are listed chronologically and display the following information.

  • Stash ID: The most recent stash is assigned the stash@{0} ID.
  • Stash name: The name of a stash is WIP by default.
  • Timestamp: The amount of time since the stash was created.
  • Files: The number of files in the stash.
  • Branch name: The branch where the stash was created.

The Stashes activity also shows whether a stash includes untracked files.

Click the Toggle compact mode icon to reduce the information provided for the stash.

Create a stash

To create a stash, complete the following steps.

  1. In the Stashes activity, click Push Stash.
  2. In the Push Stash dialog, enter a stash message in the Message field.
  3. Click Stash to create a stash with your current changes.

You can change the scope of the stash in Advanced Options.

Stash view

Click a stash row to open the stash in Stash view. The Stash view displays the following information.

  • Stash ID: The most recent stash is assigned the stash@{0} ID.
  • Timestamp: When the stash was created.
  • Branch: The branch where the stash was created.
  • Files changed: Which files were changed in the stash.

Click a file row in the Files Changed section to view the changes made to the file. Click the filepath to open the file in the File view. Click the Open in Diffs icon to open all changed files in the Diff view.

Stash actions

In the Stash view, click the following action icons to perform a stash action.

IconAction
PopApplies the changes in the stash and deletes the stash.
ApplyApplies the changes in the stash and keeps the stash.
Create branch from this stashCreates a new branch and applies the stashed changes.
Drop StashDeletes the stash.