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

Failed to push. Error -1: invalid refspec

Open DenisBrenner opened this issue 1 year ago • 2 comments

Hi,

I am getting the following error:

core/variant/variant_utility.cpp:1092 - GitPlugin: Failed to push. Error -1: invalid refspec refs/heads/ in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L543

OS: Windows 10 - all updates / 64-bit

I am using Username and PAT (tried classic and new one)

I am getting this error if I am trying to push, same for force push.

Soes anyone have a idea?

Thanks in advance!

DenisBrenner avatar Sep 15 '24 08:09 DenisBrenner

I'm also having this issue

core/variant/variant_utility.cpp:1092 - GitPlugin: Failed to push. Error -1: invalid refspec refs/heads/ in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L543 GitPlugin: Performing push to origin

What I did:

  1. Created new project with git enabled
  2. Download and install godot-git-plugin
  3. Go to Version Control Settings
  4. Set PAT token from Github in Password
  5. Set remote to my Github repo
  6. Stage, Commit, Push
  7. ...
  8. Fail :(

I tried PAT only on password, PAT and username, I tried with Bitbucket account as well and no luck

Edit: Using Windows 11 and git version 2.47.1.windows.1

JuarezCaus3 avatar Dec 25 '24 14:12 JuarezCaus3

Did you find a solution?

LoadingStill avatar May 03 '25 22:05 LoadingStill