[英]How can I remove Git from Flutter project on VSCode?
I have a project that I want to remove git from, but simply deleting the.git file breaks the project.我有一个项目,我想从中删除 git,但只需删除 .git 文件就会破坏该项目。 I get this error if I do that:
The current Flutter SDK version is 0.0.0-unknown.
如果这样做,我会收到此错误:
The current Flutter SDK version is 0.0.0-unknown.
I had to reinstall Flutter to fix this, and when I reinstalled the project had git again.我不得不重新安装 Flutter 来解决这个问题,当我重新安装项目时,git 再次出现。 What can I do?
我能做些什么?
Right-click the project in the Project Explorer panel and then choose Source Control > Delete Repository from the context menu.右键单击 Project Explorer 面板中的项目,然后从上下文菜单中选择 Source Control > Delete Repository。
Run this command rm -rf.git*
.运行此命令
rm -rf.git*
。
From VSCode Terminal:从 VSCode 终端:
Inside Project run this command在项目内部运行此命令
rm -fr .git
Verify the git repo.验证 git 存储库。 exists
存在
git status
//fatal: not a git repository
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.