Skip to content

[Feature Request] Add “Stash” option to the “Local Changes” area when checking out a branch, commit, or tag #2539

Description

@BrandowLucas

When checking out another branch, commit, or tag while local changes are present, please add a separate “Stash” option to the Local Changes section.

Currently, the available options are:

Do Nothing
Stash & Reapply
Discard

“Stash & Reapply” is useful when I want to temporarily set aside my changes and immediately restore them after checkout. However, there are also cases where I want to stash the changes and leave them in the stash without automatically reapplying them.

At the moment, doing this requires manually creating a stash before checking out the branch, commit, or tag. Adding a dedicated option would make this workflow faster and more convenient. Github Desktop also have this option when checking out branches.

Image Image

Proposed options:

  • Do Nothing
  • Stash ← Add this
  • Stash & Reapply
  • Discard

The new “Stash” option should save the current local changes to the stash, complete the checkout, and leave the changes stashed until the user manually reapplies or pops them later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions