Git Flow - Hotfix sobre master - Paso a Paso - Más allá de lo que ves

viernes, 7 de febrero de 2014

Git Flow - Hotfix sobre master - Paso a Paso

-- CREAR RAMA HOTFIX DESDE MASTER Y SOLUCIONAR EL PROBLEMA
1. git checkout -b hotfix/issue-124 master
2. soluciono el error
3. git commit -m 'Fixed. Solucionamos el error....'

-- MERGE A MASTER
4. git checkout master
5. git merge hotfix/issue-124
ojo !!! PODEMOS USAR --ff o --no-ff de momento hemos decido usar ff así pues lo podemos forzar usando:
5.a. git merge --ff hotfix/issue-124

-- ENVIAR CAMBIOS A GITLAB
6. git push origin master

-- MERGE A DEVELOP
7. git checkout develop
8. git merge hotfix/issue-124
ojo !!! PODEMOS USAR --ff o --no-ff de momento hemos decido usar ff así pues lo podemos forzar usando:
8a. git merge --ff hotfix/issue-124

-- ENVIAR CAMBIOS A GITLAB
9. git push origin develop

-- SI TODO CORRECTO ETIQUETAMOS
10. git tag -a v1.0.X+1 -m 'Solucionamos...' master

-- ENVIAMOS A GITLAB LA ETIQUETA
11. git push --tags

-- ELIMINAR LA RAMA HOTFIX
12. git branch -d hotfix/issue-124

No hay comentarios:

Publicar un comentario