可以使用 git stash push
命令来存储部分文件。
你可以通过以下命令将所有修改存储在新的stash中:
git stash push
如果只需要存储某些文件的修改,可以使用以下命令:
git stash push path/to/file1 path/to/file2 ...
这样就会将指定的文件修改存储在一个新的stash中。
注意:如果你想回到 stash 中并查看更改,请使用 git stash apply
命令。如果你想撤销之前的更改并还原之前的状态,请使用 git stash pop
命令。