Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to push. Error -1: invalid refspec #256

Open
DenisBrenner opened this issue Sep 15, 2024 · 1 comment
Open

Failed to push. Error -1: invalid refspec #256

DenisBrenner opened this issue Sep 15, 2024 · 1 comment
Labels

Comments

@DenisBrenner
Copy link

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!

@Calinou Calinou added the bug label Oct 7, 2024
@JuarezCaus3
Copy link

JuarezCaus3 commented Dec 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants