1
resposta

Erro no push

O meu aparece a seguinte mensagem: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rightsand the repository exists.

O que devo fazer?

1 resposta

Você está tentando acessar o github via SSH? Primeiro verifique se você tem uma chave SSH criada: https://docs.github.com/pt/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys

Se não tiver, crie uma: https://docs.github.com/pt/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent