Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Erro already exists

Depois de realizar o comando: git remote add origin git@github.com:terezafcsousa2/numero-secreto.git

error: remote origin already exists. PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git push -u origin main fatal: 'git@github.com/terezafcsousa2/numero-secreto.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo>

Já estou logada

4 respostas

PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git init Reinitialized existing Git repository in C:/Users/Usuário/Desktop/ALURA_ONE/jogo/.git/ PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git add . PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git commit -m "arquivos adicionados" On branch main nothing to commit, working tree clean PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git remote add origin git@github.com:terezafcsousa2/numero-secreto.git

error: remote origin already exists. PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo> git push -u origin main fatal: 'git@github.com/terezafcsousa2/numero-secreto.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. PS C:\Users\Usuário\Desktop\ALURA_ONE\jogo>

Oi!

Você adicionou o repositório remoto, mas acabou digitando a url incorreta. Rode o seguinte comando para corrigir:

git remote set-url origin git@github.com:terezafcsousa2/numero-secreto.git

ok, mas veio a seguinte mensagem: 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

solução!

Consegui resolver aqui. O agente ssh estava desabilitado no w11 .

Minha página do gitHub