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

Remote repository not found error #26

Open
coolneo4u opened this issue Feb 24, 2024 · 2 comments
Open

Remote repository not found error #26

coolneo4u opened this issue Feb 24, 2024 · 2 comments

Comments

@coolneo4u
Copy link

Thank you for making the extension.
When I use Open in GitHub... command in my company project, it works fine.

However, when I use it on my side project, it shows Remote repository not found error.
I'm using multiple SSH keys for these projects.

Can you help me to set the extension properly?

@fabiospampinato
Copy link
Owner

@coolneo4u could you check if v2 fixed the issue for you?

If it doesn't: do you get a reasonable output (can you share it?) if you run the git remote -v command?

@SiarheiBokuts
Copy link

I have the same problem with the latest version of the extension, but it worked in version 1.3.

I suspect the issue in the latest version is due to different handling of custom SSH keys.

When I run git remote -v, I get the following output:

git@github.com-ProfileName:company/project.git

This is my SSH configuration:

Host github.com-ProfileName
    HostName github.com
    User git
    IdentityFile ~/.ssh/rsa_key 

I'm not sure how this extension works, but you can compare version 1.3 with the latest version to identify the changes.
Essentially, you should remove any ProfileName from the URL.

So, change:

git@github.com-ProfileName:company/project.git
to:

git@github.com:company/project.git

And then open the specific page using this repository address.

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

No branches or pull requests

3 participants