Github workflow?

Is there a recommended way to use Github and Defold? Or working with Github in general? The method I was using before seemed clunky… it felt like I was doing something wrong.

TOOLS
I use GitHub Desktop to work with my GitHub hosted projects. Sometimes I also use the command line tools, but GitHub Desktop is my primary tool.

CREATING A PROJECT
Option 1: When I create a new project I create the project repository on GitHub using the web interface on github.com. This will be a completely empty project with no files at all.

Option 2: If you want to start your new project from an existing Defold project template you can do so from GitHub as well. The project templates we provide all exist on our GitHub account:

When you have found the template you want to start from you create your own project repository from this template using the web interface on github.com.

OPEN THE PROJECT FOR THE FIRST TIME
When the repository has been created I need to get access to it from my computer. I do this by cloning it to my local computer using GitHub Desktop and the web interface on github.com.

Now I have the project under version control and ready to be opened in Defold. If I created the project using Option 1 above I also obviously need to copy the Defold project files that I need to my project folder.

SYNCHRONIZE CHANGES TO GITHUB
When I make changes to the project I sync those changes to GitHub using GitHub Desktop.

It is really helpful if you understand the basic terminology when working with Git. I can recommend the documentation for GitHub Desktop to help you get started with this.

5 Likes

Thanks for the detailed explanation! I have it working again now.