git stash pop
后,出现一些冲突,例如:
<<<<<<< Updated upstream
int foo = 5;
=======
int foo = 6;
>>>>>>> Stashed changes
我已经在代码中解决了这些问题,但现在在提交之前无法预览我的更改。我只看到下面的东西,而我知道有一些更改:
diff --cc mainwindow.cpp
index 24dc025,2c44ad8..0000000
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
如何强制git diff将当前源代码与最后一次提交进行比较?
* 未合并的路径 mainwindow.cpp
。 - sashoalmgit status --short
的输出是什么? - michasUU mainwindow.cpp
。 - sashoalm