Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
1
respuesta

Lo que hicimos en el curso

Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad

Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad
Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad

Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad

comandos
$ git log
$ git log --oneline
$ git clone + ruta de almacenamiento de Git

$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (3/3), 1020 bytes | 39.00 KiB/s, done.
From https://github.com/ernestorafaelviloriagarcia/sistema-de-registro
54a7077..3d0057e main -> origin/main
Updating 54a7077..3d0057e
Fast-forward
README.md | 2 ++
1 file changed, 2 insertions(+)

$ git status
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
(use "git add ..." to include in what will be committed)
contacto.html

nothing added to commit but untracked files present (use "git add" to track)

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)

$ git add .

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
(use "git restore --staged ..." to unstage)
new file: contacto.html

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)

$ git commit -m "Agrega archivo de contacto"
[main 86813fc] Agrega archivo de contacto
1 file changed, 12 insertions(+)
create mode 100644 contacto.html

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$

$ git push
info: please complete authentication in your browser...
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 553 bytes | 276.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/ernestorafaelviloriagarcia/sistema-de-registro.git
3d0057e..86813fc main -> main


$ ls
README.md app.js contacto.html index.html

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ code .

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: index.html

no changes added to commit (use "git add" and/or "git commit -a")

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$


Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ ls
README.md app.js contacto.html index.html

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ code .

Ernesto Viloria@DESKTOP-6DBRMV9 MINGW64 ~/OneDrive/Documentos/git-y-github/sistema-de-registro (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.

1 respuesta

Hola Ernesto, espero que estés bien

Parece que estás repasando los comandos y pasos que realizaste en el curso de Git y GitHub. Aquí tienes un resumen de lo que hiciste:

  1. Revisaste el historial de commits con git log y git log --oneline.
  2. Clonaste un repositorio usando git clone.
  3. Actualizaste el repositorio local con git pull.
  4. Verificaste el estado del repositorio con git status, notando que había un archivo sin seguimiento (contacto.html).
  5. Agregaste el archivo nuevo a la zona de preparación con git add ..
  6. Hiciste un commit con el mensaje "Agrega archivo de contacto".
  7. Subiste los cambios al repositorio remoto con git push.

Si tienes alguna pregunta específica sobre alguno de estos pasos o necesitas más ayuda, no dudes en preguntar. Espero que esta revisión te haya sido útil.

Espero haber ayudado y ¡buenos estudios!