There is no way to use git stash here, except apply and pop
Asked
Active
Viewed 2.8k times
39

DevLife
- 519
- 1
- 4
- 6
-
@Brett How do we stash the changes compared to Visual Studio 2022? Only from the console like git stash --include-untracked? – DevLife Nov 01 '21 at 10:14
1 Answers
75
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)

Muggin
- 861
- 5
- 6
-
15
-
7
-
3
-
4Just 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. – SvendK Apr 24 '23 at 17:20
-
2what 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? – Max Alexander Hanna May 02 '23 at 20:32
-
I agree. There should be a separate Stash button to the left the Commit button. And I'm trying to figure out what the two stash options actually do! – Yann Duran May 09 '23 at 03:17
-