Creé un repositorio privado pero no puedo acceder a él desde la terminal [duplicado]
Aug 19 2020
Creé un proyecto en mi terminal, Ubuntu. Entonces hice
git init
git add .
git commit -m "fc"
Luego, creé un repositorio PRIVADO en github.
Finalmente,
~$ git remote add github.com/my-user-name/XXXXXXX.git ~$ git push -u origin master
Pero me sale este error
fatal: 'github.com/my-user-name/XXXXXXX.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.
Tengo SSH configurado con esta computadora.
Gracias por la ayuda.
Respuestas
1 wjandrea Aug 19 2020 at 10:14
Necesita especificar el protocolo, como https://
o git://
. Sin el protocolo, la URL se refiere a un archivo en su computadora , que probablemente no existe.
Así por ejemplo,
git remote add origin https://github.com/my-user-name/XXXXXXX.git