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

Unable to create worktree when using SSH remote #3971

Open
cmgriffing-at-gitkraken opened this issue Jan 22, 2025 · 0 comments
Open

Unable to create worktree when using SSH remote #3971

cmgriffing-at-gitkraken opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working triage Needs to be looked at
Milestone

Comments

@cmgriffing-at-gitkraken

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:

[url "ssh://[email protected]/"]
      insteadOf = https://github.com/
@cmgriffing-at-gitkraken cmgriffing-at-gitkraken added bug Something isn't working triage Needs to be looked at labels Jan 22, 2025
@eamodio eamodio added this to the 16.3 milestone Jan 22, 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 triage Needs to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants