Respuestas Ejercicio 22 (Preparacion TOP)

Escribe tu respuesta. Puedes usar Markdown

  1. mkdir git_101
    2.cd git_101, ls
    3.git init
    4.ls -a, permite visualizar el archivo oculto y se ve la carpeta .git
    5.touch first.txt
    touch second.txt
    6.git add first.txt, si funciono
    7.first.txt ya se encuentra en staging y second.txt no
    8.git commit -m “initial commit”
    9.si funciona se logra visualizar en nuevo commit
    10.git commit -a -m “second commit”
    11.git log, todo funciona perfectamente, registran los commit realizados
    12.cp first.txt first_copy.txt
    13.que falta agregar a first_copy.txt a stagging

15.falta agregar a first_copy.txt a stagging
16. git add first_copy.txt
17.echo “my content file” >first_copy.txt
18. no entiendo muy bien lo que observo
diff --git a/first_copy.txt b/first_copy.txt
index e69de29…b2ed108 100644
Binary files a/first_copy.txt and b/first_copy.txt differ
19.
20. git status ,todo funciona

1-
joinner → mkdir git_101

2-
joinner → git_101

3-
git_101 → git init

4-
git_101 ±|master|→ ls -a
. … .git

5-
git_101 ±|master|→ touch first.txt second.txt

6-
git_101 ±|master ✗|→ git add first.txt
git_101 ±|master ✗|→ git status -s
A first.txt
?? second.txt

7-
First.txt esta registrado y listo para ser confirmado

Second.txt sin registrar.

8-
git_101 ±|master|→ git commit -m "initial commit"
[master (root-commit) 96d634f] initial commit
1 file changed, 0 insertions(+), 0 deletions(-)

9-
commit 96d634fe0eed9366d9fafb42d87044843de358ce (HEAD → master)
Author: joinner joinner@example.com
Date: Thu Sep 30 13:23:25 2021 -0500
initial commit
(END)

10-
git_101 ±|master ✗|→ git commit -a -m "second.txt"
git_101 ±|master|→ git status
On branch master
nothing to commit, working tree clean

11-
commit 1a50d2b1f2317c01efcf74bb85de1e39ba275017 (HEAD → master)
Author: joinner joinner@example.com
Date: Thu Sep 30 13:29:29 2021 -0500

second.txt

commit 96d634fe0eed9366d9fafb42d87044843de358ce
Author: joinner joinner@example.com
Date: Thu Sep 30 13:23:25 2021 -0500

initial commit

12-
git_101 ±|master|→ cp first.txt first_copy.txt
‘first.txt’ → ‘first_copy.txt’

13-
git_101 ±|master ✗|→ git status
On branch master
Untracked files:
(use “git add …” to include in what will be committed)
first_copy.txt

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

14-
git_101 ±|master ✗|→ rm second.txt

15-
git_101 ±|master ✗|→ git status
On branch master
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
deleted: second.txt

Untracked files:
(use “git add …” to include in what will be committed)
first_copy.txt

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

>2 archivos sin seguimiento.<

16-
git_101 ±|master ✗|→ git add first_copy.txt

17-
git_101 ±|master ✗|→ vim first_copy.txt

logre salir del vim luego de mil intentos

18-
+My content File
+
+*intento por salir x1000
+
+sdasd

19-
git_101 ±|master ✗|→ git add first_copy.txt
git_101 ±|master ✗|→ git commit -m "agregando todos los archivos menos second.txt"
[master 4e8d7f6] agregando todos los archivos menos second.txt
1 file changed, 5 insertions(+)
create mode 100644 first_copy.txt

20-
git_101 ±|master ✗|→ git status
On branch master
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
deleted: second.txt