39

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

There is no way to use git stash here

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 Answers1

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)

enter image description here

Muggin
  • 861
  • 5
  • 6
  • 15
    Stash Well hidden. – huang Oct 13 '22 at 08:29
  • 7
    too well hidden – BigChief Jan 25 '23 at 13:31
  • 3
    Very hidden, been looking for this for ages. – Joseph Wambura Feb 09 '23 at 09:02
  • 4
    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. – SvendK Apr 24 '23 at 17:20
  • 2
    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? – 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
  • If someone works at Microsoft please just show better this button... – Julián Jul 27 '23 at 21:38