Deploy To GithubPages error in git config

The issue is have currently is not related to that

by user 841751666960760944

But good night

by user 841751666960760944

I’ll figure it out on my own then

by user 841751666960760944

Here is what I found for you :brain: Discord

Hello Abdullah,

The error message command failed git config —get remote.origin.url generally indicates that Unity is trying to access the URL of the remote repository configured in git but is encountering an issue, possibly due to a misconfiguration. Here’s what you can do to troubleshoot this issue:

  1. Open Git Bash or your preferred terminal.
  2. Navigate to the Unity project directory.
  3. Run the following command to check if a remote origin is set:
git remote -v
  1. If no remote origin is set, you can add it using the following command:
git remote add origin YOUR_REPOSITORY_URL

Replace YOUR_REPOSITORY_URL with the actual URL of your repository.

  1. If a remote origin is already set, ensure that the URL is correct. If it’s not, you can set the correct URL using:
git remote set-url origin YOUR_CORRECT_REPOSITORY_URL

Once the remote origin is configured correctly, try building and deploying again through the Unity engine.

If you are using the ExportInfo component of the Needle Engine to build and deploy, ensure that the Git settings are correctly set up in the Editor. You may also want to consult the documentation or check for any updates that might have fixed known issues related to this.

If the problem persists, please refer to the console or editor logs for a more detailed error message, which can provide further insights into what might be going wrong.

1 messages left GPT 4
thread_LsCSBZ69vHOTzBbSe7TBJcei
Thanks for your feedback!

@Abdullah which git version do you have?

I had similar issues, and ended up using the ‘Deploy to GitHub’ component, uploaded my repo and I could even play the game in GitHub pages. Don’t think that solves your problem but might help as a workaround

by user 507643794963824650

Let me check rq

by user 841751666960760944

I tried both Build & deploy and just deploy

by user 841751666960760944

No luck

by user 841751666960760944

Let me try again just in case

by user 841751666960760944

@marwie1 :cactus:git version 2.39.1.windows.1

by user 841751666960760944

let me try this now

by user 841751666960760944

yeah that didn’t change much

by user 841751666960760944

@marwie1 :cactus: is this okay?

by user 841751666960760944

I guess we’ll never know if that was right

by user 841751666960760944

@Abdullah please take timezones into account, we are on CET which was around midnight when you sent the version

Changed the channel name: Deploy To GithubPages error in git config

The git version should be fine - I’m on 2.38.1 windows.
Which Needle Engine version are you currently using?

Can you send the Unity Editor log after you got this error in the console? Thank you!
When you restart Unity and try again it should work (there was an issue with cases where a parent directory contained an empty git repository (which was not configured at all) that it failed)