Describe the bug
I use multiple SSH keys in my setup (work, personal, etc.). I configured custom SSH aliases for each account to ensure my commits and access to repos/organizations. This means i need to clone my repos using git@github-work:XXX and git@github-personal:XXX instead of git@github.com:XXX. I can push/pull, create branches, tags, and everything works fine.
However, when I try to open a branch in my browser or open a PR, I get the famous "Unsupported git service". I tried setting
services:
"github-work": "github.com"
in my config file but have had no luck :(
To Reproduce
Steps to reproduce the behavior:
- Define multiple SSH profiles in you
~.config/ssh
- Clone a repo using one of the aliases you created
- Try opening a PR
- See error
Expected behavior
Lazygit should resolve the local url using the ssh alias (since that is how Git works). Or at least provide a way to set it up to mirror its behaviour.
Screenshots
Version info:
commit=2d0c7cb0fc85e3c262837eb9691813fa97e00e80, build date=2024-09-07T02:26:26Z, build source=binaryRelease, version=0.44.0, os=darwin, arch=arm64, git version=2.43.0
Terminal info:
Ghostty + TMUX
Describe the bug
I use multiple SSH keys in my setup (work, personal, etc.). I configured custom SSH aliases for each account to ensure my commits and access to repos/organizations. This means i need to clone my repos using
git@github-work:XXXandgit@github-personal:XXXinstead ofgit@github.com:XXX. I can push/pull, create branches, tags, and everything works fine.However, when I try to open a branch in my browser or open a PR, I get the famous "Unsupported git service". I tried setting
in my config file but have had no luck :(
To Reproduce
Steps to reproduce the behavior:
~.config/sshExpected behavior
Lazygit should resolve the local url using the ssh alias (since that is how Git works). Or at least provide a way to set it up to mirror its behaviour.
Screenshots
Version info:
commit=2d0c7cb0fc85e3c262837eb9691813fa97e00e80, build date=2024-09-07T02:26:26Z, build source=binaryRelease, version=0.44.0, os=darwin, arch=arm64, git version=2.43.0Terminal info:
Ghostty + TMUX