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?
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?
Copyright © 2021 Jogjafile Inc.
You can explicitly list files to stash after
--git stash -- commands/abc/Test.cs common/des/Info.cs common/pit/Abc.csThen your changes in
services/Services123.cswon'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*)