Ok, so, when you create a new Defold project from the dashboard a new git repo will be created on our server. When you open the project in Defold a git clone will be created in:
your_defold_install_folder/branches/project_id/your_defold_user_id/name/git_clone_ends_up_here
This means that you have a normal git repository clone in the above location. You can interact with it in three ways:
- Through the simple git functionality in the editor (Synchronize Project, Changed Files etc)
- Through git command line tools from a shell, terminal, command prompt
- Through a 3rd party visual git tool such as GitHub for Desktop, SourceTree, Git Tower etc
To use GitHub for Desktop you need to add the git repo. You do this by choosing File->Add Local Repository and browse to the root of your project. Click add and you’ll see the project in the list of Other repositories on the left (at least that’s the layout on a Mac). Remember that the project is still hosted on our server, but you now have the ability to create new branches, merge, do partial commits and stuff like that.
If you want to use a git repo hosted on GitHub instead of using our server you can create a new project on GitHub and change Repository->Repository Settings->Primary remote repository to the repository address as seen on the GitHub page of your project.