sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
394 stars 73 forks source link

Ability to resolve using OpenSSH client configuration file #116

Closed psibi closed 6 months ago

psibi commented 9 months ago

So I have this setup where I use a different github account and a different private key configured like this in my ~/.ssh/config

Host github+myorg
  IdentitiesOnly yes
  HostName github.com
  IdentityFile ~/.ssh/myorg_id_rsa

This PR provides the ability to support such configuration. I have disabled it by default since this is not a common setup most peoples have.

sshaw commented 9 months ago

Hi, thanks for the PR!

To make sure I understand, your git remote uses github+myorg but you want that to link to github.com, is that correct?

psibi commented 9 months ago

To make sure I understand, your git remote uses github+myorg but you want that to link to github.com, is that correct?

Yes. The remote for my repository looks like this:

git@github+myorg:MyOrganization/repo-name.git
sshaw commented 6 months ago

Release in v0.9.1

psibi commented 6 months ago

Thank you!