2. ¿QUÉ
ES?
<<FLUJO DE TRABAJO>>
"sistema de organización
en su repositorio de
control de versiones"
trabajar en
funcionalidades nuevas
arreglar bugs críticos
acabar una iteración y
tener que juntar todas
las funcionalidades que
se han desarrollando
dejar lo que estábamos
haciendo para seguir con
otra tarea más
importante
probar
implementaciones.
3. CARACTERÍSTI
CAS
-
ES IDEAL PARA PROYECTOS QUE LLEVEN UNA
PLANIFICACIÓN DE ENTREGAS ITERATIVAS.
-
PERMITE LA PARALELIZACIÓN DEL DESARRO
LLO MEDIANTE RAMAS INDEPENDIENTES PAR
A LA PREPARACIÓN, MANTENIMIENTO Y PUBLI
CACIÓN DE VERSIONES DEL PROYECTO ASÍ CO
MO SOPORTA LA REPARACIÓN DE ERRORES E
N CUALQUIER MOMENTO.
- VINCENT DRIESSEN
6. • Interrumpir el trabajo que estamos
haciendo en la rama develop para
la versión 1.1
• Resolver el bug
• Incorporar la corrección del bug en
la rama master para desplegarlo
en producción lo más rápido
posible
• Incorporar la corrección del bug en
la rama develop (si procede)
• Retomar el trabajo que estábamos
haciendo en la rama develop
HOTFIX BRANCHES
7. • El objetivo es guardar este trabajo a
medias y recuperarlo cuando hayamos
terminado de corregir el bug:
$ git stash save 'Antes de empezar
a corregir el bug #14'
Saved working directory and index
state On feature/h5: Antes de
empezar a corregir el bug #14
HEAD is now at f6609a9 Primera
implementación de las páginas
estáticas
HOTFIX/BUG-14
8. $ git flow hotfix start bug14
Switched to a new branch 'hotfix/bug14'
Follow-up actions:
- Bump the version number now!
- Start committing your hot fixes
- When done, run:
git flow hotfix finish 'bug14'
HOTFIX/BUG-14
10. * El objetivo de estas ramas es preparar nuestra aplicación para su puesta en producción.
$ git flow release start 1.0
Switched to a new branch 'release/1.0'
Summary of actions:
- A new branch 'release/1.0' was created, based on 'develop'
- You are now on branch 'release/1.0'
Follow-up actions:
- Bump the version number now!
- Start committing last-minute fixes in preparing your release
- When done, run:
git flow release finish '1.0'
RELEASE BRANCH
11. Así queda el repositorio
cuando hemos terminado
de arreglar todos los bugs y
estamos listos para que
nuestro proyecto pase a
producción
RELEASE BRANCH
12. Así queda el repositorio cuando
hemos terminado de arreglar todos
los bugs y estamos listos para que
nuestro proyecto pase a producción.
Para cerrar la producción:
$ git flow release finish 1.0
RELEASE BRANCH
13. REFERENCIAS
- Installation · nvie/gitflow Wiki. (s. f.).
GitHub. https://github.com/nvie/gitflow/wiki/Installation
- About me. (s. f.). nvie.com. https://nvie.com/about/
- git-flow cheatsheet. (s. f.). Site not found · GitHub
Pages. https://danielkummer.github.io/git-flow-cheatsheet/index.es_ES.html
- Qué es Git flow y cómo funciona | Cleventy. (s. f.). Cleventy | Software + Web +
Apps. https://cleventy.com/que-es-git-flow-y-como-funciona/
- workflow Archives - Aprende GIT. (s. f.). Aprende
GIT. https://aprendegit.com/category/workflow/