I use git-for-windows v2.16.0 and encountered the following problem, which also was reported here:
I initially have a clean working state; Output of 'git status':
git status
On branch beta
nothing to commit, working tree clean
Then I make local changes. Output of 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")
Then I stash them with 'git stash':
git stash
Saved working directory and index state WIP on beta: 2fca403 working on the console
Now my working directory should be clean but the output of git status
still reads:
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")
Which leads to not being able to git checkout
etc.