You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue trying to use worktrees with an ssh remote.
The remote is: origin ssh://[email protected]/cmgriffing-at-gitkraken/enterprise-todo-app.git
When trying to create a worktree I get the error, Cannot find remote for 'https://github.com/cmgriffing-at-gitkraken/enterprise-todo-app/git'
When I use the followup prompt to try and create the remote, I am met with the error "Unable to resolve link" even though the remote was created. One thing I notice is that the remote is an ssh:// remote still. This is likely due to some config I have set up in my git config, but it seems odd to me that we don't support ssh configured remotes for worktrees.
I am pretty sure I have had this exact same config in the past when using worktrees in GitLens though. Like when I recorded the previous screen only video about them. So it seems like this could be a regression.
Description
I'm running into an issue trying to use worktrees with an ssh remote.
The remote is:
origin ssh://[email protected]/cmgriffing-at-gitkraken/enterprise-todo-app.git
When trying to create a worktree I get the error,
Cannot find remote for 'https://github.com/cmgriffing-at-gitkraken/enterprise-todo-app/git'
When I use the followup prompt to try and create the remote, I am met with the error "Unable to resolve link" even though the remote was created. One thing I notice is that the remote is an ssh:// remote still. This is likely due to some config I have set up in my git config, but it seems odd to me that we don't support ssh configured remotes for worktrees.
I am pretty sure I have had this exact same config in the past when using worktrees in GitLens though. Like when I recorded the previous screen only video about them. So it seems like this could be a regression.
GitLens Version
16.2.1
VS Code Version
Version: 1.96.3 (Universal)
Commit: 91fbdddc47bc9c09064bf7acf133d22631cbf083
Date: 2025-01-09T18:14:09.060Z (1 wk ago)
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.2.0
Git Version
git version 2.39.3 (Apple Git-146)
Logs, Screenshots, Screen Captures, etc
The config I have that auto corrects https to ssh is this:
The text was updated successfully, but these errors were encountered: