Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我在本地分支中有一些修改过的文件:
modified: commands/abc/Test.cs modified: common/des/Info.cs modified: common/pit/Abc.cs modified: services/Services123.cs
我想放在stash第一个 3. 我该怎么做?
stash
您可以显式列出要存储的文件--
--
git stash -- commands/abc/Test.cs common/des/Info.cs common/pit/Abc.cs
那么您的更改services/Services123.cs将不会被隐藏。
services/Services123.cs
(请注意,在您的特定情况下,您可以方便地利用文件名并使用通配符,例如git stash -- com*)
git stash -- com*