61

There is no way to use git stash here, except apply and pop

There is no way to use git stash here

1
  • @Brett How do we stash the changes compared to Visual Studio 2022? Only from the console like git stash --include-untracked? Commented Nov 1, 2021 at 10:14

1 Answer 1

123

It's in the dropdown menu on the commit. Click the dropdown arrow next to "Commit All".

Click either:

"Stash All (--include-untracked)

OR

"Stash All and Keep Staged (--keep-index)

enter image description here

Sign up to request clarification or add additional context in comments.

13 Comments

Stash Well hidden.
too well hidden
Very hidden, been looking for this for ages.
Just for info: If your solution contains projects that each have their own git repository, then there is no dropdown next to the commit button. You have to select only a single repository in the top dropdown menu ontop of the commit message input field inside the Git Changes window, then the dropdown menu on the commit button is visible including the stash menu item.
what if i dont want to stash all? i just want to select say one or two files and stash those while keeping the rest of my files intact?
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.