Answer a question

I'm using mac and I was wondering how can I clone a private github repo with ssh using vscode? I looked at code.visualstudio.com/docs/editor/versioncontrol but I couldn't find anything about cloning with ssh.

In vscode I go to the source control icon on the left and click clone repository. I enter git@github.com:username/project and it says permission denied. I do have my public and private key generated but where do I enter them?

Answers

Ssh is something which you set in your ssh-agent and it works with bash. I have been using Vscode for quite some time and i always setup ssh using git bash which is easier. I clone a project into my workspace using git bash and then open it with vscode.

As far as I can see, there is no way you can setup ssh from vscode.

if you are looking to setup ssh from terminal, docs are here.

Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐