Reputation: 806
I was working on macOS to build flutter project and then I have to move the project to windows server 2012 r2 to do API requests so I install the flutter in windows I create an initial project it works fine and then I tried to run my project first I run 'flutter packages get' an error has appeared about the ./packages file as well as error in updating pub it was trying to updating after each 5 seconds so I pressed control+c now when I run any flutter command nothing appears to me no errors no results what to do ??
Upvotes: 0
Views: 664
Reputation: 658155
When you copy a Flutter project from one machine to another, without using Git (git clone ....
), then you need to delete all directories and files listed in the .gitignore
file in your project (if the project was created with an older Flutter version another .gitignore
file might be in ios/
and android/
- also delete the files and directories listed there).
.gitignore
lists all files and directories that are specific to your machine and are generated on demand anyway, so there is no need to persist them.
It would be better to use Git even if you don't use GitHub or similar cloud services. You can use it only with a shared repository on a network share or even a repository on your local drive.
Upvotes: 1