Respuestas Ejercicio 23 (Preparacion TOP)

Escribe tu respuesta

1-
joinner → mkdir git_101

2-
joinner → git_101

3-
git_101 → git init

4-
git_101 ±|master|→ git status
On branch master

5-
git_101 ±|master|→ git branch -m master main

6-
si tienes el siguiente mensaje: “fatal: Not a valid object name: ‘main’.”
probablemente te funcione si ingresas: git commit --allow-empty -m "first commit

git_101 ±|main|→ git branch feature_a

7-
git_101 ±|main|→ git checkout feature_a
Switched to branch ‘feature_a’
$ touch feature_A.txt

8-
$ vim feature_A.txt

ya domine la salida del editor vim

9-
$ git add feature_A.txt
$ git commit -m "first commit in feature a"

10
$ git checkout main

11
$ git merge feature_a

12

$ git log
commit 124a706925cb87c173c3337cdcf39fd57a5e6eea (HEAD → main, feature_a)
Author: joinner you@example.com
Date: Thu Sep 30 16:02:04 2021 -0500

first commit in feature a

commit 19b22bd81c423eae6573932fe2b0be7849792f15
Author: joinner you@example.com
Date: Thu Sep 30 15:35:21 2021 -0500

first commit