-
Creacion de la rama
git branch develop
-
Redireccionamiento a la rama creada
git checkout develop
-
Subir al repositorio rama creada
git push -u origin develop
Comando resumen:
git checkout -b develop
-
Crear y redireccionar a la rama
git checkout develop git checkout -b feature/nombre_rama
-
Subir al repositorio rama creada
git push -u origin feature/nombre_rama
-
Crear , redireccionar y subir la rama release_branches (PRUEBAS QA)
git checkout develop git checkout -b release_branches git push -u origin release_branches
-
Crear , redireccionar y subir la rama hotfixes (PROBLEMAS EN PRODUCCION)
git checkout master git checkout -b hotfixes git push -u origin hotfixes
git checkout develop
git merge feature/nombre_rama --no-ff
git push -u origin develop
git checkout master
git merge develop
git push -u origin master
develop -> feature/nombre_rama
git checkout feature/nombre_rama
git pull
git merge origin/develop --no-ff
git push -u origin release_branches
-
local
git branch
-
remoto
git branch -r
git reset --hard #ULTIMO COMMIT CORRECTO
Esquema completo de GITFLOW
