Amazon.co.uk Widgets
Flutter Logo - Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.

Setting up Git for source code control for Flutter 💙 development

This is the eighteenth part of a journey to build and publish a Flutter™ based app. Ive been working on this project on my Mac, and now need more computers so its time to manage the project properly using source code control so that I can keep my work in sync and under control.

Git

Git is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows. Git From Wikipedia, the free encyclopedia

My case is pretty simple. I have three development machines, a Mac, a Chromebook, and a ThinkPad running Ubuntu Linux and want to keep the Flutter source code on all of them and in sync and runnable via Android Studio. Git distributed version-control is capable of far more, and of supporting teams, bit but it handles this task easily.

To set it up was just a case of going to my git service provider and setting up my user account and ssh certificates for my laptop and my mac. There are many git repo providers, you dont have to use github - I use Assembla for development management and it provides private git repositories and is phenomenally reliable. YMMV. Once set up run the following commands to instantiate the repository and push it up to the server.

git init
git add -A
git commit -m "First commit"
git remote add origin your.reponame.git
git push -u origin master