Maider Pozo
Maider Pozo

Reputation: 45

GitLab and Visual Studio Code integration

I'm trying to integrate Visual Studio Code as GitLab to perform version control of a software for my senior project at collegue.

I've tried with this commands.

  1. git config --global user.name "xx xxxx"

  2. git config --global user.email "[email protected]"

  3. git clone ssh://[email protected]/NewFolder/repo.git

After introducing this commands the terminal shows:

"Cloning into 'state-editor'... [email protected]: Permission denied (publickey,keyboar-interactive). fatal: Cloud not read from remote repository. "

What should I do? Thanks in advance!

Upvotes: 1

Views: 3140

Answers (1)

VonC
VonC

Reputation: 1323793

One, you need to make sure you have added an SSH public key to your GitLab account, and are properly recognized/authenticated by GitLab with:

ssh -Tv [email protected]

Two, you need to create an empty project on GitLab, for you to clone/access:

git clone ssh://[email protected]/<me>/<myRepo>

Replace <me> with your actual GitLab user account name.
"NewFolder" is likely not your GitLab account.

Upvotes: 2

Related Questions