Hola! En esta ocasión voy a mostrar un manual básico de Git. Algunos os lo habéis bajado directamente de GitHub y viene configurado por defecto mediante unos sencillos pasos podéis utilizarlo, como empleais cualquier aplicación, como Spotify o Skype.
Si tenemos un proyecto nuevo, debemos de poner lo siguiente para subirlo a GitHub:
echo "# Academia San Roque Code https://academiasanroque.com" >> README.md
git init
git add README.md
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/nuestroproyecto
git push -u origin main
Si es un proyecto nuevo, escribimos lo siguiente:
git remote add origin https://github.com/nuestroproyecto
git push -u origin main
Si tenemos el proyecto de una nueva URL, y no podemos borrar .git, escribiremos:
git remote set-url origin https://github.com/nuestroproyecto
git push -u origin main
Si queremos actualizar el proyecto ponemos los siguientes comandos:
git init
git add .
git commit -m "first commit"
git branch -M main
git push -u origin main
Si da error Fatal: remote origin already exists escribimos lo siguiente:
git remote remove origin
Muchas gracias por leer este artículo, si te interesa aprender más de repositorios, programación, sea de forma académica o de forma autodidacta en academia san roque podemos ayudarte en tu camino laboral y académico.

NUESTRAS ÚLTIMAS PUBLICACIONES
- LA IMPORTANCIA DE LAS CERTIFICACIONES OFICIALES DE IDIOMAS DE LAS ESCUELAS OFICIALES DE IDIOMAS PARA EL ALUMNADO DE SECUNDARIA

- CURSO INTENSIVO DE SMR: SISTEMAS MICROINFORMÁTICOS Y REDES

- ANÁLISIS DE LOS RESULTADOS DE ESPAÑA EN PISA 2025 (PUBLICADOS EN 2026): EVOLUCIÓN DURANTE LOS ÚLTIMOS VEINTE AÑOS – PARTE 2.

- CURSOS INTENSIVOS ASIR: ADMINISTRACIÓN DE SISTEMAS INFORMÁTICOS EN RED

- ANÁLISIS DE LOS RESULTADOS DE ESPAÑA EN PISA 2025 (PUBLICADOS EN 2026): UNA REFLEXIÓN SOBRE LAS COMPETENCIAS CLAVE PARA EL SIGLO XXI – PARTE 1.

- CURSOS INTENSIVOS PARA LAS OPOSICIONES AL CUERPO DE INFORMÁTICOS DEL ESTADO Y LAS ADMINISTRACIONES PÚBLICAS.

- CURSOS INTENSIVOS PARA LAS OPOSICIONES A LAS ADMINISTRACIONES PÚBLICAS

- ACADEMIA SANROQUE CUIDA LAS LETRAS Y LAS HUMANIDADES.

- CLASES DE PSICOLOGÍA, PSICOMETRÍA, PSICOBIOLOGÍA Y OTRAS.

- ACADEMIA SANROQUE: LAS CIENCIAS SON UNA ESPECIALIDAD MOTIVANTE E ILUSIONANTE.

- PRUEBAS DE ACCESO A GRADOS FORMATIVOS

- PRUEBAS DE ACCESO A LA UNIVERSIDAD PÚBLICA O PRIVADA: PAU, PAM25-40-45, PCE, ETC.

Contenido restringido


Comments are closed