Visual Studio Code Git 显示驱动器上的所有更改? [英] Visual Studio Code Git shows all changes on drive?
本文介绍了Visual Studio Code Git 显示驱动器上的所有更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Macbook 上使用 Visual Studio Code 1.6.0.
I am using Visual Studio Code 1.6.0 on a Macbook.
我发现 VSC GIT 列出了大量更改 - 甚至那些不在我的工作文件夹中的?
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."
请告诉我如何从 GIT 面板中删除所有这些.
Please advise how I can remove all these from the GIT panel.
推荐答案
希望这对未来的任何人有所帮助
Hope this helps anyone in future
- 使用
cd ..
返回文件夹 - 使用
git status
检查git是否已经初始化 - 如果是,请使用命令
rm -rf .git
删除 git 跟踪 - 重复此操作,直到到达根目录
- 并重新加载您的 vs 代码以跟踪当前目录
这篇关于Visual Studio Code Git 显示驱动器上的所有更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文