我正在名为new_nlp的分支上,当我执行git status时,我得到以下提示:
# On branch new_nlp
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: untitled.
这个文件已经被删除,我无法看到它的内容。
我想切换到主分支并从新的nlp分支执行一次变基操作,但当我切换到主分支并输入以下命令时:
git rebase new_nlp
我收到以下错误信息:
cannot rebase: you have unstaged changes
D untitled.
我无法看到这个文件,也不知道如何删除它。我也不知道它是怎么被添加进来的。
有没有人知道我如何才能克服这个障碍?我不知道为什么这个文件仍然存在于索引中。