Top Banner
Git Sistema Distribuido de Control de Versiones (DVCS)
13

Introducción a Git

Sep 03, 2014

Download

Technology

Juan Antonio

Introducción básica a Git. Conceptos para empezar a usar Git
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introducción a Git

GitSistema Distribuido de Control de

Versiones (DVCS)

Page 2: Introducción a Git

Centralizado Version Control System

Page 3: Introducción a Git

Distributed Version Control System

Page 4: Introducción a Git

Basics - Repository

Page 5: Introducción a Git

Basics - Branches

Page 6: Introducción a Git

Basics - Merge

Page 7: Introducción a Git
Page 8: Introducción a Git

Configuración

# Configure the user which will be used by gitgit config --global user.name "Juan Perez"

# Same for the email addressgit config --global user.email "[email protected]"

Page 9: Introducción a Git

Empecemos

# Creamos un directorio para nuestro nuevo proyecto

mkdir ~/hellogit# Agregamos un archivovim index.html

Page 10: Introducción a Git

# Initialize the local Git repositorygit init# Add all (files and directories) to the Git

repositorygit add .# Make a commit of your file to the local repositorygit commit -m "Initial commit"# Show the log filegit log

Primeros Pasos

Page 11: Introducción a Git

El segundo commit

# Check the changes via the diff command git diff

# Commit the changes, -a will commit changes for modified files

# but will not add automatically new filesgit commit -a -m "These are new changes"

Page 12: Introducción a Git

Github git client

GUIs

Page 13: Introducción a Git

Clientes Mac:

• Gitbox• Tower• Gihub

Clientes Windows:

• TortoiseGit• SmartGit• Github

Algunos GUIs