1
respuesta

[Sugerencia] ejercicio

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git add index.html

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git status On branch master Changes to be committed: (use "git restore --staged ..." to unstage) modified: index.html

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git commit -m "Agregando servicios a clientes con archivo index.html" [master 66ca508] Agregando servicios a clientes con archivo index.html 1 file changed, 1 insertion(+), 1 deletion(-)

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git log commit 66ca508cc65d617cb59d6737f08670684f7b1601 (HEAD -> master) Author: Mesias Beltran mesiasbm@gmail.com Date: Mon Aug 29 17:24:12 2022 -0500

Agregando servicios a clientes con archivo index.html commit aee9bf7a3230fdd463b61f96aeb8e1ea8e4bc301 Author: Mesias Beltran mesiasbm@gmail.com Date: Mon Aug 29 17:04:02 2022 -0500

Creando archivo index.html con barberia Alura commit 6f8549a65f11f30a6e66a18f27740bff43a45244 Author: Mesias Beltran mesiasbm@gmail.com Date: Mon Aug 29 14:34:26 2022 -0500

Agregando carpeta commit 6df1b325fc5c34a63efb5337e8344028491b753c Author: unknown mesiasbm@gmail.com Date: Mon Aug 29 10:03:49 2022 -0500

Arreglado el nombre de la barberia Alura commit 6549f909f5a35e1b4d86b645ee3d52e6f2e5ce8e

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git log --oneline 66ca508 (HEAD -> master) Agregando servicios a clientes con archivo index.html aee9bf7 Creando archivo index.html con barberia Alura 6f8549a Agregando carpeta 6df1b32 Arreglado el nombre de la barberia Alura 6549f90 Creando archivo index.html con lista de cursos

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git log -p commit 66ca508cc65d617cb59d6737f08670684f7b1601 (HEAD -> master) Author: Mesias Beltran mesiasbm@gmail.com Date: Mon Aug 29 17:24:12 2022 -0500

Agregando servicios a clientes con archivo index.html diff --git a/index.html b/index.html index e2fea5f..0193e55 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,7 @@

Espacio diferenciado Localizacion Profesionales Calificados class="items"> Polas para los clientes Las polas son gratis commit aee9bf7a3230fdd463b61f96aeb8e1ea8e4bc301 Author: Mesias Beltran mesiasbm@gmail.com Date: Mon Aug 29 17:04:02 2022 -0500

Creando archivo index.html con barberia Alura ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git status On branch master Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: carpeta/.gitignore

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

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git add .gitignore fatal: pathspec '.gitignore' did not match any files

ASUS@DESKTOP-2FTEK9B MINGW64 ~/documents/Alura latam/Git-practica (master) $ git commit -m "Adding .gitignore" On branch master Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: carpeta/.gitignore

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

`

` Gracias no estoy seguro si esta bien el punto 11 y 12

1 respuesta

¡Hola Jhonivánforero!

En cuanto a tu pregunta, parece que tienes algunas dudas con respecto a los comandos de Git que estás utilizando. En cuanto al punto 11, parece que estás tratando de agregar el archivo .gitignore al repositorio, pero Git no lo encuentra en la ubicación que especificaste. Asegúrate de que el archivo .gitignore esté en la carpeta correcta y que estés escribiendo la ruta correcta en el comando "git add".

En cuanto al punto 12, parece que estás tratando de confirmar los cambios en el archivo .gitignore, pero Git no encuentra ningún cambio para confirmar. Asegúrate de haber guardado los cambios en el archivo antes de confirmarlos.

Espero que esto te ayude a aclarar tus dudas. Si tienes alguna otra pregunta, no dudes en preguntar. ¡Espero haber ayudado y buenos estudios!

Si este post te ayudó, por favor, marca como solucionado ✓. Continúa con tus estudios! :)