所以我做了很多修改,还有一些未跟踪的文件。我需要调整一些东西,所以我使用了 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
仍然显示了我隐藏的更改的列表,但是我不知道我现在要做什么。
我怎样才能摆脱困境?