Solucionado (ver solução)

Importante

Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!

Solucionado
(ver solução)
1
resposta

Could not read from remote repository

Olá, ao fazer um push para o github, a seguinte mensagem de erro aparece. Como solucionar?

mensagem no gitBash

$ git push origin master git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

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

mensagem no cmd

Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

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

1 resposta
solução!

Opa, já achei, funcionou agora:

git remote set-url origin https://github.com/usuario/repositorio