-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code discard changes; running git status still shows file #2222
Comments
Thanks for reporting the issue. Looks like this might be related to #1939. Can you please check before and after |
Here it goes. [1] Before modifying file |
The I don't know if that makes any difference. |
Another thing I noticed when running Git Bash: git version 2.13.0.windows.1 Should I try to update the |
My Issue is fixed by setting Closing. |
I have had the same error, but it was caused by permissions on the wsl linux file system. Github Desktop works under the main user of your wsl distro, so if you create some files using a different user, like root for example, Github Desktop won't be able to discard the changes of those file. |
Same here, although in my case it does not seem to have anything to do with a non-default user in WSL (unless Pengwin does something weird that means that the default user set up during installation is not the 'default' user as seen by Windows). I can use git normally when using a remote connection into WSL through VS Code. On Windows proper, all edited files show as 'modified' even if all changes have already been commited and pushed. Although, so far, my problem is limited to python files. Which just adds to the weirdness (no extensions should be touching those; I disabled everything just to be sure). |
Your Windows build number:
Microsoft Windows [Version 10.0.15063]
What you're doing and what's happening:
After running
Discard Changes
in VS Code, file still appears when runninggit status
in any shell insideBash on Windows
. Also tried in the nativeBash on Windows
terminal (without ConEmu), no difference.But when running
git status
inGit bash
the file is not there.git status
seems to be not working properly insideBash on Windows
.What's wrong / what should be happening instead:
When running
Discard Changes
in VS Code, the file should not be shown when runninggit status
.View screencast
I opened an issue in VS Code thinking there something wrong with Code but nope.
The text was updated successfully, but these errors were encountered: