Alternative project hosting
We use Git for version control of all our projects. Git is a distributed version control system, which means that you can host your game code on any other Git server than the one provided by our service. We are working on a way to enable this through the editor, but it’s still possible to do with just a little bit of fiddling on your own.
Currently you still need to create a project on our dashboard just so the editor knows a project exist.
Please note this should be considered an advanced feature, use with care!
How to use a custom Git server
What we need to do is change the projects origin URL. This can be done in most graphical Git clients, such as SourceTree and GitHub Desktop.
Graphical clients
- Open your project in the Defold editor.
- Right click on the
game.project
file, select “Show in Finder
” (or similar for your platform). - Add this folder to your client as a local repository, then:
SourceTree - Repository settings;
GitHub Desktop - Repository settings;
Command line
Prerequisite: Git - OS X, Windows, Linux
- Open your project in the Defold editor.
- Right click on the
game.project
file, select “Show in Finder
” (or similar for your platform). - Next, you need to navigate to the project location (from step 2) in a terminal window. Here’s how:
- Lastly, change the origin remote to your own Git URL entering these commands into your terminal:
git remote set-url origin <your_own_git_server_url>
git push -u origin master
The Git server URL can either be your own private server, or one from a third party provider/host, see below.
How to get your Git server URL
GitHub
- Create a new repository
- Your Git URL can be found here:
BitBucket
- Create a new repository
- Your Git URL can be found here:
GitLab
- Create a new project
- Your Git URL can be found here: