<分区>
我已经在我的本地分支中添加了一个新文件。在运行命令 git status
时,它给出以下输出:
# On branch MyLocBranch
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# mypath/nextDir/myfile.py
nothing added to commit but untracked files present (use "git add" to track)
这很好,因为我有未跟踪的文件,它在终端中显示为红色。
现在为了存储这些更改,我运行了命令 git stash
和 git stash save "some message"
。但是我收到错误 No local changes to save
这很奇怪。更改应该已被 stash 。