Home > Enterprise >  How can I revert files and folders after I mistakenly add files from Flutter commands in Android Stu
How can I revert files and folders after I mistakenly add files from Flutter commands in Android Stu

Time:11-22

I did the command

flutter create --platforms=windows,macos,linux .

mistakenly under the "ios" directory. I just wanted to add platforms to an existing flutter project.

The command above adds many config files under the wrong directory so I want them restored.

enter image description here

I did git reset -hard but the files are still there. How can I revert them?

CodePudding user response:

Since, you are using git and it yiu haven’t committed the changes yet, try-

git chekout .

But before doing that take a copy of your file must. Hope this will help

  • Related