Skip to content

push failed: git error:failed to resolve address for github #2593

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

Closed
cy-james-lee opened this issue Apr 2, 2025 · 3 comments
Closed

push failed: git error:failed to resolve address for github #2593

cy-james-lee opened this issue Apr 2, 2025 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@cy-james-lee
Copy link

Describe the bug
It seems the pushing is only happening when trying to push to 3 different repos. SSH cred files are located in "~/.ssh". Just plain git push works without any problem.

To Reproduce
Steps to reproduce the behavior:

  1. Stage
  2. Commit
  3. Push
  4. See error

Expected behavior
Push without fail

Screenshots
Image

Context (please complete the following information):

  • OS/Distro + Version: Windows 11 23H2
  • GitUI Version: 0.27.0
  • Rust version: rustc 1.85.0 (but didn't compile, downloaded through choco)

Additional context

> git remote -v
both    [email protected]:cy-james-lee/HC.ETL.git (fetch)
both    [email protected]:cy-james-lee/HC.ETL.git (push)
both    git@githubEMU:loc1/HC.ETL.git (push)
both    git@githubEMU:loc2/HC.ETL.git (push)
@cy-james-lee cy-james-lee added the bug Something isn't working label Apr 2, 2025
@naseschwarz
Copy link
Contributor

Would you please be so kind and post the full screenshot? The cutoff is very suspicious. I suppose resolving githubEMU fails? If so, can you please tell me how you resolve this name? What is the source of this name? Is it a hosts entry, your host name, some name injected by a DNS server or abbreviated by a search domain (like DHCP opt. 119)?

Also, gitui does not support multiple push-urls per remote, see #1306.

@cy-james-lee
Copy link
Author

@naseschwarz, here is the full screenshot:

Image

githubEMU is a host alias that was created to use different SSH for different repo.

> cat ~/.ssh/config
Host githubEMU
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_ed25519_EMU

I also get this message if I try to push tags:

Image

@naseschwarz
Copy link
Contributor

Sorry, this is also a known issue. #496

Help on both issues is welcome.

Until then, I'll close this as a duplicate. Please let me know if you believe that this is not warranted.

@naseschwarz naseschwarz added the duplicate This issue or pull request already exists label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants