segundo tema (ramas) · git como arte marcial no ver lo que no quieres ver:.gitignore git add -f
TRANSCRIPT
![Page 1: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/1.jpg)
![Page 2: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/2.jpg)
Segundo tema (Ramas)
Por el humilde sensei Psicobyte
![Page 3: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/3.jpg)
La vía interior (Configuración)
Recordamos…
git config --global user.name "Psicobyte Sensei"
git config --global user.email "[email protected]"
![Page 4: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/4.jpg)
Los tres cuencos
![Page 5: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/5.jpg)
git como arte marcial
(O el “Dar cera – Pulir cera” de git)
![Page 6: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/6.jpg)
git como arte marcial
Recordamos...
git init
git add
git commit
![Page 7: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/7.jpg)
Los tres cuencos
![Page 8: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/8.jpg)
git como arte marcial
No ver lo que no quieres ver:
.gitignore
![Page 9: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/9.jpg)
git como arte marcial
No ver lo que no quieres ver:
.gitignore
git add -f
![Page 10: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/10.jpg)
git como arte marcial
Dehacer lo hecho:
git reset
git reset --hard
![Page 11: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/11.jpg)
La vía óctuple
(Usando ramas)
![Page 12: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/12.jpg)
La vía óctuple
Crea una rama:
git branch Nombre-De-La-Rama
![Page 13: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/13.jpg)
La vía óctuple
Nos movemos a una rama:
git checkout Nombre-De-La-Rama
Nos movemos a la rama principal:
git checkout master
![Page 14: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/14.jpg)
La vía óctuple
Crea una rama y nos movemos a ella:
git checkout -b Nombre-De-La-Rama
![Page 15: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/15.jpg)
La vía óctuple
¡Por el gran dragón! ¿En qué rama estoy?
git branch
![Page 16: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/16.jpg)
La vía óctuple
Borra una rama:
git branch -d Nombre-De-La-Rama
![Page 17: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/17.jpg)
La vía óctuple
Recuperando el pasado (o lo que sea):
git checkout ID
(recuerda git log)
![Page 18: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/18.jpg)
La vía óctuple
Mezcla una rama con aquella en la que estés:
git merge Nombre-De-La-Otra-Rama
![Page 19: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/19.jpg)
La vía óctuple
¡Conflicto entre ramas!
git informa detalladamente del problema y debemos arreglarlo nosotros mismos y hacer un commit.
¿Qué hacemos?
![Page 20: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/20.jpg)
La vía óctuple
git merge
(editar archivos a mano)
git add
Git commit
![Page 21: Segundo tema (Ramas) · git como arte marcial No ver lo que no quieres ver:.gitignore git add -f](https://reader035.vdocumento.com/reader035/viewer/2022081617/60422900b4fc9e187c075970/html5/thumbnails/21.jpg)
Muchas gracias (por segunda vez)
http://www.psicobyte.com
@psicobyte_
Esta presentación se puede descargar de:
http://www.psicobyte.com/info/descargas