简体   繁体   中英

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. I get this error if I do that: 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. What can I do?

Right-click the project in the Project Explorer panel and then choose Source Control > Delete Repository from the context menu.

Run this command rm -rf.git* .

From VSCode Terminal:

Inside Project run this command

 rm -fr .git

Verify the git repo. exists

git status
//fatal: not a git repository 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM