What (a) git?

Defold version 1.2.128 this is editor 2… perhaps there’s a reason it is labeled as it is, and some people think ‘2’ when they see that. Anyhow…

Decided to have a look, see if my project was still working and promptly dragged stuff all over willy nilly because this touch screen is finicky. Eventually I will get it back together, I hope. This did make me decide to finally install git.

Let me see if I got this right…

With my projects on my local machine:

I can fart around with back up drives and the like. Paper even (which I did to trace as I have no printer, now I use a scratch version of vscode).

OR

In the DEFOLD editor:

File>synchronize

(or start the project from the dashboard)
And use Defold’s built in git.

I would assume this would be some sort of private repo.
I would guess I may or may not even need git for this, which if true might be a plus worth mentioning. I would assume it’s one less thing to deal with, learn, etc.

I should actually do this for the tutorials.
Hopefully they’ll be even better this go around.

OR

I can create an origin repo with command line git or some third party application. Need a URL. Not sure how current the instructions for setting that up are, or if it depends on wether or not I want the defold engine connected that way.

I wonder what the pros and cons are…

Do I need the engine to be aware of git, or …
…could I simply close it when doing anything with git, and hope when it starts it refreshes itself.
Seems a bit cumbersome to be honest, although may be desired for more complicated or in depth project management.

Yes, the project you open in the editor does not have to be under version control (or you could use some other VCS than Git). Using this option will always show the Changed Files section as empty in the editor.

You have plenty of options really:

  1. Create your project on the Defold dashboard. This will be a privately hosted Git repo. You use Import Project from the Defold editor splash screen to clone the project to a location on your hard drive.
  2. Create your project on GitHub, BitBucket or similar service and manually clone the project to a location on your hard drive and then chose Open From Disk on the Defold editor splash screen to open the project
  3. Create an unversioned project somewhere on your hard drive and use Open From Disk. No version control/synchronize option will be available in the editor.
1 Like

This version number in the editor refers to the engine number release.

2 Likes