Comandos para subir un repositorio a GitHub, el repositorio debe existir en GitHub, podemos crearlo por la web.
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/NOMBRE_USUARIO/NOMBRE_PROYECTO.git
git push -u origin master
Para identificarnos en GitHub necesitaremos un token, lo podemos obtener, desde nuestra cuenta de GitHub:
![](http://jblazquez.es/wp-content/uploads/2022/04/image-6.png)
Generamos un token
![](http://jblazquez.es/wp-content/uploads/2022/04/image-7-1024x241.png)
Para acceder solo necesitamos nuestro nombre de usuario y el token
$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token