Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cgonzalezdai/cc33db72a6fe5178637aabb562eae35c to your computer and use it in GitHub Desktop.
Save cgonzalezdai/cc33db72a6fe5178637aabb562eae35c to your computer and use it in GitHub Desktop.
Como subir un proyecto local a github

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

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

@silaven
Copy link

silaven commented May 17, 2024

Gracias me funcionó!!!

@acblanco1991
Copy link

Buenas, estoy intentando subir un proyecto pero tengo dos cuentas de github en mi pc y cuando intento subir me da este error, me podrian ayudar : git push origin main
remote: Permission to lanco91/Recetario.git denied to vidrm90.
fatal: unable to access 'https://github.com/lanco91/Recetario.git/': The requested URL returned error: 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment