currently I got a few modified files into my local branch:
modified: commands/abc/Test.cs
modified: common/des/Info.cs
modified: common/pit/Abc.cs
modified: services/Services123.cs
I want to put to stash
just first 3. How can I do that?
You can explicitly list files to stash after --
git stash -- commands/abc/Test.cs common/des/Info.cs common/pit/Abc.cs
Then your changes in services/Services123.cs
won't be stashed.
(Note that in your specific case you could conveniently take advantage of the file names and use a wildcard, like git stash -- com*
)