所以我有一堆改变和一些未跟踪的文件。我需要调整一些东西,所以我使用了git stash -u
,修改了一些内容,提交了这些更改,推送了它们,然后尝试使用git stash pop
。
由于我修改了一些我已经存储的文件,所以我得到了以下信息:
error: Your local changes to the following files would be overwritten by merge:
file_1.py
file_2.py
Please, commit your changes or stash them before you can merge.
Aborting
这看起来很奇怪,当我运行命令时,我的检出很干净,我提交了所有的新更改。
似乎 git stash pop
操作解开了一半的更改和未跟踪的文件,但如果我再次尝试 git stash pop
,我会得到如下输出:
some_file.html already exists, no checkout
some_other_file.html already exists, no checkout
yet_another_file.html already exists, no checkout
Could not restore untracked files from stash
git stash show
仍然显示我的暂存更改列表,但我现在不知道该怎么做。
我该如何解决这个问题?