SlideShare una empresa de Scribd logo
6
Lo más leído
8
Lo más leído
GitFlow en GitLab
G. Mizael Mtz Hdz
SOFTWARE ENGINEER
AGENDA
● INTRODUCCIÓN
○ ¿Qué es Git?
○ ¿Qué es Gitlab?
○ Algunos comandos Git
○ Gitflow
● CREAR REPOSITORIO
○ Crear repositorio en Gitlab
● PRÁCTICA
○ Requisitos
○ Tabla de cambios
○ Cambio #1 - feature/login-con-facebook
○ Cambio #2 - feature/exportar-reporte-drive
○ Cambio #3 - hotfix/login-linkedin
○ Cambio #4 - release/v1.2.0
INTRODUCCIÓN
INTRODUCCIÓN
¿Qué es Git?
● Software de control de versiones
● Permite mantener un histórico de las distintas versiones de un desarrollo
INTRODUCCIÓN
¿Qué es Gitlab?
● Servicio web (servidor) basado en GIT.
● Servidor GIT
● Origin
INTRODUCCIÓN
Algunos comandos Git
● git init
● git clone
● git add
● git commit
● git push
● git branch
● git tag
● git pull
● touch
INTRODUCCIÓN
Gitflow
● Flujo de trabajo basado en Git
● Permite el trabajo en equipo (conflictos en merge request)
● Ideal en metodologías ágiles
● Modelo estricto de ramificación
● Ramas clave: master y develop
RAMAS
● master
● develop
_________________
● feature/
● bug/
● support/
● release/
● hotfix/
INTRODUCCIÓN
Gitflow
CREAR REPOSITORIO
CREAR REPOSITORIO
Crear repositorio en Gitlab
● https://gitlab.com/
● Proyecto “GitFlow en Gitlab”
● Agregar README.md
● push -u origin master
PRÁCTICA
PRÁCTICA
Requisitos
● Editor: Visual Studio Code
● Extensión: Git Graph
PRÁCTICA
Tabla de cambios
ID DESCRIPCIÓN CORTA RAMA DE TRABAJO RAMA ORIGEN RAMA DESTINO
Cambio #1 Implementar inicio de
sesión con Facebook
feature/login-con-facebook develop develop
Cambio #2 Exportar reporte de
usuarios a Google Drive
feature/exportar-reporte-drive develop develop
Cambio #3 Error al iniciar sesión con
Linkedin (v1.1.0)
hotfix/login-linkedin master master y develop
Cambio #4 liberar versión v1.2.0 release/v1.2.0 develop master y develop
PRÁCTICA
Cambio #1 - feature/login-con-facebook
● git checkout -b develop | git push -u origin develop
● git checkout -b feature/login-con-facebook
● touch login-con-facebook.txt
● git add login-con-facebook.txt
● git commit -m "Se implemento el inicio de sesion con Facebook"
● git push -u origin feature/login-con-facebook
MERGE REQUEST
● Menú > Merge Requests > New merge request
PRÁCTICA
Cambio #2 - feature/exportar-reporte-drive
● git checkout develop | git pull origin develop
● git checkout -b feature/exportar-reporte-drive
● touch exportar-reporte-drive.txt
● git add exportar-reporte-drive.txt
● git commit -m "Soporte para exportar reportes de usuarios a Google Drive"
● git push -u origin feature/exportar-reporte-drive
MERGE REQUEST
● Menú > Merge Requests > New merge request
PRÁCTICA
Cambio #3 - hotfix/login-linkedin
● git checkout master | git pull origin master | revisar git graph
● git checkout -b hotfix/login-linkedin
● touch login-linkedin.txt
● git add login-linkedin.txt
● git commit -m "Se soluciono el error al iniciar sesion con Linkedin"
● git push -u origin hotfix/login-linkedin
MERGE REQUEST
● Menú > Merge Requests > New merge request
● Merge request a master
● git pull origin master
● git tag -a v1.1.0 -m "version 1.1.0"
● git push -u origin v1.1.0
● Merge request a develop
● git pull origin develop
PRÁCTICA
Cambio #4 - release/v1.2.0
Aprobar merge request en Gitlab
● git checkout develop | git pull origin develop | revisar git graph
● git checkout -b release/v1.2.0
● touch ajustes-release-v1-2-0.txt
● git add ajustes-release-v1-2-0.txt
● git commit -m "ultimo ajuste"
● git push -u origin release/v1.2.0
MERGE REQUEST
● Menú > Merge Requests > New merge request
● Merge request a master
● git pull origin master
● git tag -a v1.2.0 -m "version 1.2.0"
● git push -u origin v1.2.0
● Merge request a develop
● git pull origin develop
TALLER EN YOUTUBE
LINK: https://www.youtube.com/playlist?list=PLpiNp4PTAhF5LVkHiKyAb92I1580CIRG_

Más contenido relacionado

PDF
Git flow en github
PPTX
Introducción a git y git hub
PDF
Formation autour de git et git lab
PDF
Intro to Github Actions @likecoin
PPTX
Git basics to advance with diagrams
PDF
Intro to Git and GitHub
PDF
Git Series. Episode 3. Git Flow and Github-Flow
Git flow en github
Introducción a git y git hub
Formation autour de git et git lab
Intro to Github Actions @likecoin
Git basics to advance with diagrams
Intro to Git and GitHub
Git Series. Episode 3. Git Flow and Github-Flow

La actualidad más candente (20)

PPTX
Git branching strategies
PPTX
Protocolos de seguridad ssl
PDF
Git best practices workshop
PDF
Git Branching for Agile Teams
PPT
Introduction to Git and Github
ODP
Desarrollando un API con REST
PDF
Redacción de Trabajo de grado (SISTEMAS INFORMATIOS)
PDF
Introduction to GitHub
PPT
Git101
PDF
Gitlab flow solo
PDF
Advanced Git Tutorial
PDF
Git training v10
PDF
Integración Continua con Gitlab + Fastlane
PPTX
Git vs svn
PDF
Git pour les (pas si) nuls
PDF
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
PDF
Introducción a git
PDF
git - eine praktische Einführung
PPTX
EP2 Competencia intrapersonales - TERMINADO.pptx
PPTX
Introduction to github slideshare
Git branching strategies
Protocolos de seguridad ssl
Git best practices workshop
Git Branching for Agile Teams
Introduction to Git and Github
Desarrollando un API con REST
Redacción de Trabajo de grado (SISTEMAS INFORMATIOS)
Introduction to GitHub
Git101
Gitlab flow solo
Advanced Git Tutorial
Git training v10
Integración Continua con Gitlab + Fastlane
Git vs svn
Git pour les (pas si) nuls
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
Introducción a git
git - eine praktische Einführung
EP2 Competencia intrapersonales - TERMINADO.pptx
Introduction to github slideshare
Publicidad

Similar a Git flow en gitlab (20)

PDF
Control de versiones utilizando Git
PDF
Mejora tu productividad con git
PDF
Taller Git en la URJC
PPTX
Git: un enfoque práctico
PDF
Git workflow v2
ODP
Taller breve de introduccion a Git
PPT
Flujo de trabajo básico con git
PDF
Git & GitHub Part II
PDF
Tallerintroducciongit
PDF
github-git-cheat-sheet.pdf
PPTX
Introducción a GIT
PDF
APRENDE INTEGRADOR CON NOSTROS FACIL Y RAPIDO
PPTX
Todo sobre el mundo del GIT-INTEGRACION-CONCEPTOS-USABILIDAD
PDF
Git + Github - Sysmana 2014
PDF
Introducción a GitFlow
PDF
PPTX
Introducción a git
Control de versiones utilizando Git
Mejora tu productividad con git
Taller Git en la URJC
Git: un enfoque práctico
Git workflow v2
Taller breve de introduccion a Git
Flujo de trabajo básico con git
Git & GitHub Part II
Tallerintroducciongit
github-git-cheat-sheet.pdf
Introducción a GIT
APRENDE INTEGRADOR CON NOSTROS FACIL Y RAPIDO
Todo sobre el mundo del GIT-INTEGRACION-CONCEPTOS-USABILIDAD
Git + Github - Sysmana 2014
Introducción a GitFlow
Introducción a git
Publicidad

Último (6)

PDF
Su punto de partida en la IA: Microsoft 365 Copilot Chat
DOCX
trabajo programacion.docxxdxxxddxdxxdxdxxxdxxdxdxd
PPTX
Conceptos basicos de Base de Datos y sus propiedades
PPTX
sistemas de informacion.................
PDF
AutoCAD Herramientas para el futuro, Juan Fandiño
PPTX
Derechos_de_Autor_y_Creative_Commons.pptx
Su punto de partida en la IA: Microsoft 365 Copilot Chat
trabajo programacion.docxxdxxxddxdxxdxdxxxdxxdxdxd
Conceptos basicos de Base de Datos y sus propiedades
sistemas de informacion.................
AutoCAD Herramientas para el futuro, Juan Fandiño
Derechos_de_Autor_y_Creative_Commons.pptx

Git flow en gitlab

  • 1. GitFlow en GitLab G. Mizael Mtz Hdz SOFTWARE ENGINEER
  • 2. AGENDA ● INTRODUCCIÓN ○ ¿Qué es Git? ○ ¿Qué es Gitlab? ○ Algunos comandos Git ○ Gitflow ● CREAR REPOSITORIO ○ Crear repositorio en Gitlab ● PRÁCTICA ○ Requisitos ○ Tabla de cambios ○ Cambio #1 - feature/login-con-facebook ○ Cambio #2 - feature/exportar-reporte-drive ○ Cambio #3 - hotfix/login-linkedin ○ Cambio #4 - release/v1.2.0
  • 4. INTRODUCCIÓN ¿Qué es Git? ● Software de control de versiones ● Permite mantener un histórico de las distintas versiones de un desarrollo
  • 5. INTRODUCCIÓN ¿Qué es Gitlab? ● Servicio web (servidor) basado en GIT. ● Servidor GIT ● Origin
  • 6. INTRODUCCIÓN Algunos comandos Git ● git init ● git clone ● git add ● git commit ● git push ● git branch ● git tag ● git pull ● touch
  • 7. INTRODUCCIÓN Gitflow ● Flujo de trabajo basado en Git ● Permite el trabajo en equipo (conflictos en merge request) ● Ideal en metodologías ágiles ● Modelo estricto de ramificación ● Ramas clave: master y develop RAMAS ● master ● develop _________________ ● feature/ ● bug/ ● support/ ● release/ ● hotfix/
  • 10. CREAR REPOSITORIO Crear repositorio en Gitlab ● https://gitlab.com/ ● Proyecto “GitFlow en Gitlab” ● Agregar README.md ● push -u origin master
  • 12. PRÁCTICA Requisitos ● Editor: Visual Studio Code ● Extensión: Git Graph
  • 13. PRÁCTICA Tabla de cambios ID DESCRIPCIÓN CORTA RAMA DE TRABAJO RAMA ORIGEN RAMA DESTINO Cambio #1 Implementar inicio de sesión con Facebook feature/login-con-facebook develop develop Cambio #2 Exportar reporte de usuarios a Google Drive feature/exportar-reporte-drive develop develop Cambio #3 Error al iniciar sesión con Linkedin (v1.1.0) hotfix/login-linkedin master master y develop Cambio #4 liberar versión v1.2.0 release/v1.2.0 develop master y develop
  • 14. PRÁCTICA Cambio #1 - feature/login-con-facebook ● git checkout -b develop | git push -u origin develop ● git checkout -b feature/login-con-facebook ● touch login-con-facebook.txt ● git add login-con-facebook.txt ● git commit -m "Se implemento el inicio de sesion con Facebook" ● git push -u origin feature/login-con-facebook MERGE REQUEST ● Menú > Merge Requests > New merge request
  • 15. PRÁCTICA Cambio #2 - feature/exportar-reporte-drive ● git checkout develop | git pull origin develop ● git checkout -b feature/exportar-reporte-drive ● touch exportar-reporte-drive.txt ● git add exportar-reporte-drive.txt ● git commit -m "Soporte para exportar reportes de usuarios a Google Drive" ● git push -u origin feature/exportar-reporte-drive MERGE REQUEST ● Menú > Merge Requests > New merge request
  • 16. PRÁCTICA Cambio #3 - hotfix/login-linkedin ● git checkout master | git pull origin master | revisar git graph ● git checkout -b hotfix/login-linkedin ● touch login-linkedin.txt ● git add login-linkedin.txt ● git commit -m "Se soluciono el error al iniciar sesion con Linkedin" ● git push -u origin hotfix/login-linkedin MERGE REQUEST ● Menú > Merge Requests > New merge request ● Merge request a master ● git pull origin master ● git tag -a v1.1.0 -m "version 1.1.0" ● git push -u origin v1.1.0 ● Merge request a develop ● git pull origin develop
  • 17. PRÁCTICA Cambio #4 - release/v1.2.0 Aprobar merge request en Gitlab ● git checkout develop | git pull origin develop | revisar git graph ● git checkout -b release/v1.2.0 ● touch ajustes-release-v1-2-0.txt ● git add ajustes-release-v1-2-0.txt ● git commit -m "ultimo ajuste" ● git push -u origin release/v1.2.0 MERGE REQUEST ● Menú > Merge Requests > New merge request ● Merge request a master ● git pull origin master ● git tag -a v1.2.0 -m "version 1.2.0" ● git push -u origin v1.2.0 ● Merge request a develop ● git pull origin develop
  • 18. TALLER EN YOUTUBE LINK: https://www.youtube.com/playlist?list=PLpiNp4PTAhF5LVkHiKyAb92I1580CIRG_