What I do is "git restore ." , then "git stash". I think you type "git stash -A" but I'm not certain. You should type "git restore ."with the period because that will restore all the files that you have been working on. It's a lot easier to add the period instead of the file name because it does all of it for you.