stithed文件在`git status`中显示为未更改(git v.2.16.0)

Mod*_*e77 11 git git-for-windows

我使用git换窗户v2.16.0和遇到以下问题,ALSE报道在这里:

我最初的工作状态很干净; 输出'git status':

git status
On branch beta
nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

然后我进行局部更改.产量git status:

git status
On branch beta
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   app/src/main/java/android_serialport_api/sample/Debug.java

no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)

然后我用'git stash'藏匿它们:

git stash
Saved working directory and index state WIP on beta: 2fca403 working on the console
Run Code Online (Sandbox Code Playgroud)

现在我的工作目录应该是干净的,但输出git status仍然是:

git status
On branch beta
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   app/src/main/java/android_serialport_api/sample/Debug.java

no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)

(导致无法git checkout等等

Pie*_*ter 2

这是 Windows 版 Git 中的一个已知错误,已在 v2.16.0(3) 中修复。更新到新版本将修复此错误。

感谢@choroba 指出所报告的问题!