Search code examples
gitfluttervisual-studio-codeversion-control

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?


Solution

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