Version control for watch faces etc. in Garmin SDK & Eclipse

Dear All,

How do you setup version control for you watchfaces, apps, data fields etc.?

Let's say, I want to keep versions of the source code and all other stuff through development process of my watchface to have possibility to roll-back if I do some real mess with the code.

Should I just copy project folder to another directory from time to time if I want to keep the version of the watchface at these points (and copy the files back if needed later) or there are more smart ways to do this?

Thank you!

  • Should I just copy project folder to another directory from time to time if I want to keep the version of the watchface at these points (and copy the files back if needed later) or there are more smart ways to do this?

    ^ Don't do that haha.

    Use a version control system like git. The most popular way to do this is via github.com, which supports private repositories. (All your data is stored in the cloud regardless of whether you choose to make it private or public).

    If you don't trust github (which is owned by Microsoft), you can set up a local git server on Windows, Mac or Linux.

  • personally I use bitbucket which is just another private git repository, to make the process a bit more userfriendly i use sourcetree as a git client.

    maybe version control isnt needed if you only have 1 small project, but even then... source control makes it easier to eg rollback to a previous version if you messed up badly.

  • Yeah, full disclosure: when I started developing garmin apps for fun I didn't bother to use version control despite using it religiously in my professional life. I used the same strategy of just copying and pasting my whole project folder at certain checkpoints.

    That was such a huge mistake, which I corrected as soon as my project complexity went over a certain threshold. I even went to all the trouble to retroactively reconstruct my project history in source control, to match prior versions which I had built and released on the store.

    I would save yourself the trouble and use source control out of the gate.

  • FlowState and peterdedecker,

    Thanks a lot for the discussion!

    I will look to  github.com and sourcetree!