Skip to content

lnds/Ejercicios-Clase3-Devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Ejercicio 1

Crear repo local:

En Shell ejecutar:

$ git init .

Ejecutar git status:

$ git status

Agregar archivo a git:

$ git add README.md

Configurar identificacion del desarrollador:


  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

Hacer el primer commit

git commit -m "feat: agrega archivo README"

.

Después ejecutar git status

$ git status

Agregar archivo .gitignore con este contenido:

venv

O cualquier otra cosa que quieran ignorar

git commit -a -m "actualizar repo con .gitignore y README"

Nota: git commit -a es como hacer un add y un commit al mismo tiempo

Ejercicio 2

Sincronizando repos

Actualizar el archivo README.md directamente en GitHub.

Luego hacer git pull en replit:

$ git pull origin master

Luego modificar el archivo README.md en REPLIT

Normalmente deberían hacer:

$ git push origin master

Pero GitHub ha deshabilitado el push usando https. Así que usen la interfaz de git de Replit presinando el boton Commit All & Push ->

About

Ejercicios Clase 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •