godot-git-plugin icon indicating copy to clipboard operation
godot-git-plugin copied to clipboard

Can't perform a push, pull or fetch, regardless of branch and remote.

Open Drywtler opened this issue 5 months ago • 4 comments

I'm very new to Git and GitHub, and I don't know where else to find help besides bothering the dev via their socials, I prefer not doing that.

I can see, create and remove all the branches and remotes from within the Godot editor, but I cannot perform a push, pull or fetch.

If I try to perform any of those commands on origin I get: ERROR: core/variant/variant_utility.cpp:1098 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -17: the SSL certificate is invalid in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L533 If I try to do it on another remote I get: ERROR: core/variant/variant_utility.cpp:1098 - GitPlugin: Could not connect to remote "prueba1". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -17: invalid or unknown remote ssh hostkey in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_fetch#L411

I did all the steps required to connect my Godot project to my repo. I made a PAT and put it on the password field. The PAT has the following permissions as suggested by this comment on the godot engine tutorial docs regarding VCS:

  • Repository permissions (Read/Write): Actions, Adminstration, Codespaces, Contents, Issues, Merge, Pull requests
  • Account permissions (Read): Git SSH keys, SSH signing keys.

Perhaps the SSH key is not effective since I added it to my account as an Authentication Key rather than a Signing Key, and maybe it lacks permissions too. But then again I am very new to this, so I could be missing some fundamentals.

If it is important to mention: my OS is Windows 11 Pro, I am on Godot v4.4.stable.official [4c311cbee] and using version 3.2.0 of the plugin.

Drywtler avatar Aug 17 '25 00:08 Drywtler

  • Related to https://github.com/godotengine/godot-git-plugin/issues/146.

Calinou avatar Aug 18 '25 21:08 Calinou

Can you try 3.2.1? https://github.com/godotengine/godot-git-plugin/releases/tag/v3.2.1

Calinou avatar Sep 17 '25 16:09 Calinou

Hi @Calinou, I've installed it myself to check as I have also been experiencing this bug. Sadly it hasn't resolved it for me, I just attempted a push and got this: GitPlugin: Performing push to origin ERROR: core/variant/variant_utility.cpp:1024 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -17: the SSL certificate is invalid in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L533

AdVurt avatar Sep 18 '25 10:09 AdVurt

I don't mean to hijack this, but I just wanted to say that I finally got SSH authentication to work with this plugin. I had to go through and reconfigure everything after upgrading to 3.2.1, but it works now. Here is what I did:
Upgraded to 3.2.1 and got it working with PAT token first.
ssh-keygen -t rsa -b 4096 -C "[email protected]" git config --global user.email "[email protected]" git config --global user.name "name" git remote rm origin git remote add origin [email protected]:username/repo.git ssh-add /home/username/.ssh/id_rsa I also had to create ~/.ssh/config and added the following information into it: Host host.tld Hostname host.tld IdentityFile ~/.ssh/id_rsa

IdentitiesOnly yes

I then added my public key to my git hosts interface.

That got it working via command line, then I went in the version control settings in godot and added email in the username field I set SSH Public key path and private key path and the ssh password. That got it working, at least for me.
I hope this helps.

theDoktorJ avatar Sep 20 '25 04:09 theDoktorJ