I am using Visual Studio Code 1.6.0 on a Macbook.
I'm finding that the VSC GIT is listing tons of changes - even ones that are not in my working folder?
When I hover over these I get a tooltip:
"This file is located outside the current workspace."
Please advise how I can remove all these from the GIT panel.
There could be a set of changed files, which you don't want to commit and want to undo the changes that you have already performed. Select those files/folders and right click on them to open the Git context menu, where you can click Undo Changes... to discard them.
To help you focus on your Git repository, Visual Studio has a Git Repository window, which is a consolidated view of all the details in your repository, including local and remote branches and commit history. You can access this window directly from either Git or View on the menu bar or from the status bar.
Here is how you can avoid such issues in VSCode
cd ..
git status
rm -rf .git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With