Gitlab permission error in visual studio 2019

Asked

Viewed 107 times

0

I have the error below when I try to pull/push via visual studio.

Opening repositories:
C:\Projetos\Ecommerce\Epson
Permission denied, please try again.
Permission denied, please try again.
[email protected]: Permission denied (publickey,password).
Git failed with a fatal error.
Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I do git bash it works normally. Since I’m using an SSL Key.

$ git pull
Enter passphrase for key '/c/Users/marconcilioka/.ssh/id_rsa':
Already up to date.

There is some configuration in visual studio to fix this ?

1 answer

-1

Windows must have saved your git credentials, which need to be updated/removed. The steps below worked for me on VS2017.

Go to "Credential Manager" in Windows "Start" and under "Generic Credentials" select your git URL. Click the right arrow, it should be expanded and you will see two "Edit" and "Remove from Vault" links".

Click the last link (recommended), restart the VS, open your project and make a synchronization/reception request, it should request that your credentials be entered and you should be ready. thank you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.