DevOps

Contenido

  • Introducción
  • Repositorios
  • Flujo básico
  • Ramas
  • Merge
  • Conflicto
  • Repositorios remotos

Git

Cafeteria

www.coffeeheaven.com
localhost

Git!!!

  • Content tracker
  • Sistema de control de versiones distribuido

Repositorios

Cambios

Repositorio local - Stages 

Commits

Flujo básico

git init

touch hello.txt
echo "Hola mundo" >> hello.txt

git status



git add hello.txt



git commit -m "Commit inicial"

Area de trabajo

Staging

Repositorio comiteado

Flujo básico

Flujo básico

Flujo básico

Flujo básico

Flujo básico

Working

Area

Staging

Committed

story1.txt

Flujo básico

Working

Area

Staging

Committed

story1.txt

Flujo básico

Working

Area

Staging

Committed

story1.txt

Ramas

#crear una nueva rama
git checkout -b hello_world

#listar las ramas
git branches

#borrar rama
git branch -d hello_world

Merge

Merge

Conflictos

master

Readme.md

## Hey!
Readme.md

## Hello!

Sara

Max

Conflictos

master

Readme.md

## Hey!
Readme.md

## Hello!

Sara

Max

Conflictos

master

Readme.md

## Hey!
Readme.md

## Hello!

Sara

Max

Merge Conflict

Conflictos

Conflictos

Repositorios remotos

Repositorios remotos

https://github.com/neowinx/stories.git

https://gitlab.com/neowinx/stories.git

https://bitbucket.org/neowinx/stories.git

Repositorios remotos

Local Repository

~/.git

Remote Repository

https://.../.../[name].git

Repositorios remotos

Repositorios remotos

Local Repository

~/.git

Remote Repository

https://.../.../[name].git

Repositorios remotos

Local Repository

Remote Repository

<html>
  <body>
    <h1>My Sitio Web</h1>
  </body>
</html>

Repositorios remotos

Local Repository

Remote Repository

<html>
  <body>
    <h1>My Sitio Web</h1>
  </body>
</html>
<html>
  <body>
    <h1>My Sitio Web</h1>
  </body>
</html>

Repositorios remotos

Repositorios remotos

local

remote

Repositorios remotos

local

remote

Repositorios remotos

local

remote

DevOps Git

By Pedro Flores

DevOps Git

  • 92