Subiendo codigo a github

 

En esta oportunidad vamos a comenzar a manejar GitHub , si aun no tiene cuenta se registran , este es muy sencillo solo siga los pasos para completar su perfil.



Paso 1 Crear Repositorio

Ya en nuestro perfil damos click en el boton New . Aparecera el siguiente formulario donde colocamos el nombre , descripcion si quieres , publico o privado, adicionamos archivo Readme


Le damos click en el boton de la parte inferior create repository

Paso 2 Conectarnos con github

…or create a new repository on the command line

echo "# MiBlog" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Juan31452/MiBlog.git
git push -u origin main

…or push an existing repository from the command line

git remote add origin https://github.com/Juan31452/MiBlog.git
git branch -M main
git push -u origin main

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.


Como ya tenemos nuestro git local, vamos a utilizar en la terminal de Visual Studio Code la segunda opción 


Se actualiza el navegador y aparece asi


https://github.com/Juan31452/MiBlog

Comentarios