How to Create a New Flutter project on GitHub in 5 Simple steps

Ashraf Otagun
1 min readJul 8, 2021

Firstly, open Android studio on your computer and create a new flutter project.

If you're new to Flutter, you can watch the FLUTTER FOR BEGINNERS tutorial on Youtube by NetNinja, episode 4 above.

Secondly, after successfully creating the new flutter project, open the new project folder with git bash on your PC and press the git command “git init” to initialize the new folder as a local repository.

Then after that, you press “git add .” to add all new flutter files and then commit them with the command (git commit -m “your commit-msg here”).

And proceed to create a new repository (remote) on GitHub, please do not check the “Add a README” box (Flutter projects comes with a README file already).

If it gets confusing, you can watch the video above on how to create a new GitHub repository by Netninja.

PS: Make sure to name the remote repo with the exact name your flutter app folder is called.

Thirdly, copy the remote repos HTTP link and go back to git bash and press the command “git add remote origin (and paste the link here)”.

Then finally, you press the git command “git push -u origin master” and hit enter.

Wait a few seconds for it to complete the upload, after a successful upload, go to your remote GitHub repo and reload the page, your local Flutter files should already appear.

And that's all.

--

--