Skip to content

Instantly share code, notes, and snippets.

@cgonzalezdai
Last active April 28, 2024 05:40
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

@luccsss
Copy link

luccsss commented Mar 29, 2024

Thanks, this really helped me a lot

@Yeberth
Copy link

Yeberth commented Apr 10, 2024

como soluciono esto?
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Yeberth/Simulacion-karate-torno.git/'

@CHELIO1902
Copy link

Lo mas facil es crear el repo en github y luego hacer un clone desde tu pc y empezar a trabajar, pero si ya tenes tu proyecto en tu pc tenes que hacer lo siguiente: $ git init $ git add . $ git commit -m "first commit" $ git remote add origin https://github.com/NOMBRE_USUARIO/NOMBRE_PROYECTO.git $ git branch -M main $ git push -f -u origin main

wow esto si me sirvio muchas gracias por el aporte, saludos

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