I want to upload my Flutter projects to Github.
But, I don't know which files or folders should I upload and which I should add to the .gitignore file!
Here are the Folders:
Here are the Files:
So, which Folders and Files?
Looking folder by folder
1) .dart_tool
is generated, you don't need to push it
2) .idea
, never push this folder, it's generated by your IDE
3) .package
, it'll be generated when you install dependencies, no need to push it
4) i_am_ruch.iml
, IML is a module file created by IntelliJ IDEA, no need to push it
5) pubspec.lock
is generated by pub
, you don't need to push it
6) build
folder is generated during the project's build
So finally, you must push the android
, lib
, ios
, images
, .gitignore
, pubspec.yaml
and README.md
ios
, android
folder contains native code and configuration for each platformlib
contains you flutter codeimages
, I guess it's resourcespubspec.yaml
contains dependencies to install during pub get
, and some project configurationIf you want the perfect flutter' gitignore: here it is (from official Flutter Github Repository)