git (sistema distribuido de control de versiones)

Post on 11-Jul-2015

522 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Git Sistema Distribuido de Control de

Versiones (DVCS)

Centralizado Version Control System

Distributed Version Control System

Basics - Repository

Basics - Branches

Basics - Merge

Configuración

# Configure the user which will be used by git git config --global user.name "Juan Perez" # Same for the email address git config --global user.email "email@gmail.com"

Empecemos

# Creamos un directorio para nuestro nuevo proyecto

mkdir ~/hellogit

# Agregamos un archivo

vim index.html

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

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

Primeros Pasos

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 files git commit -a -m "These are new changes"

Github git client

GUIs

Clientes Mac:

•  Gitbox •  Tower •  Gihub

Clientes Windows:

•  TortoiseGit •  SmartGit •  Github

Algunos GUIs

top related