[英]How can I remove Git from Flutter project on VSCode?
我有一個項目,我想從中刪除 git,但只需刪除 .git 文件就會破壞該項目。 如果這樣做,我會收到此錯誤: The current Flutter SDK version is 0.0.0-unknown.
我不得不重新安裝 Flutter 來解決這個問題,當我重新安裝項目時,git 再次出現。 我能做些什么?
右鍵單擊 Project Explorer 面板中的項目,然后從上下文菜單中選擇 Source Control > Delete Repository。
運行此命令rm -rf.git*
。
從 VSCode 終端:
在項目內部運行此命令
rm -fr .git
驗證 git 存儲庫。 存在
git status
//fatal: not a git repository
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.