Introducción a Git

  • Published on
    03-Sep-2014

  • View
    721

  • Download
    0

Embed Size (px)

DESCRIPTION

Introduccin bsica a Git. Conceptos para empezar a usar Git

Transcript

<ul><li> GitSistema Distribuido de Control de Versiones (DVCS) </li> <li> Centralizado Version Control System </li> <li> Distributed Version Control System </li> <li> Basics - Repository </li> <li> Basics - Branches </li> <li> Basics - Merge </li> <li> Configuracin# 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@gmail.com" </li> <li> Empecemos# Creamos un directorio para nuestro nuevo proyectomkdir ~/hellogit# Agregamos un archivovim index.html </li> <li> Primeros Pasos# 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 </li> <li> El segundo commit# Check the changes via the diff commandgit 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" </li> <li> GUIsGithub git client </li> <li> Algunos GUIsClientes Mac: Gitbox Tower GihubClientes Windows: TortoiseGit SmartGit Github </li> </ul>