1/15/2024 Admin

Godot Github Source Control


This explains how to use Github with Godot.

 

image

Open a Godot 4 file and select Version Control/Create Version Control metadata…

 

image

Select Git then OK.

 

image

Go to https://Github.com and create a repository.

 

image

(Note: Due to a limitation with the plug-in you have to make the default branch called “master” (huge sigh))

 

image

Create a PAT by going here: https://github.com/settings/tokens

 

image

Select classic token.

 

image

Set the scope to repo.

 

image

Copy the token that will be created.

 

image

Back in Godot, select AssetLib and search for git.

Select Godot Git Plugin (4.1+)

 

image

Click Download.

 

image

Click Install.

 

image

Click OK.

 

image

Select Version Control/Version Control Settings…

 

image

Enter your Github username for Username and the token created earlier for the Password.

 

image

Select Create New Remote.

 

image

Enter the Remote Name and Remote URL.

Note: for Remote URL use this format: https://github.com/<organization>/<repository>

(For example: https://github.com/ADefWebserver/BlazorWebService)

 

image

Select the Commit tab and click the Stage Changes button.

 

image

Enter a Commit Message for the commit and click Commit Changes.

 

image

Click the Fetch button.

 

image

Click the Push button.

 

image

If you get any errors do a Force Push.

 

image

You can see the status on the Output screen.

 

image

Return to Github to see the files.

 

 

Links

https://github.com/godotengine/godot-git-plugin/wiki
An error has occurred. This application may no longer respond until reloaded. Reload 🗙