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.
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