Software de control de versiones diseñado por Linus Torvalds.
Git es un sistema distribuido de control de código fuente o SCM (en inglés Source Code Management).
Auditoria de código: saber quién ha tocado qué y cuándo.
Control sobre cómo ha cambiado un proyecto con el paso del tiempo.
Volver hacia atrás de una forma rápida.
Control de versiones a través de etiquetas: versión 1.0...
Diferencias entre versiones.
Mejora la capacidad de trabajar en equipo.
Merging y branching extremadamente eficientes.
Instalar git
Configurar usuario
$ sudo apt-get install git
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
$ echo "# RepositorioPrueba" >> README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ git remote add origin git@github.com:juliandavidmr/RepositorioPrueba.git
$ git push -u origin master
Primer paso. Crear repositorio en github.
Segundo paso. Subir código al repositorio.
# Crear archivos
$ touch index.js
$ touch lib.js
...
# Añadir cambios a git
$ git add .
# Crear commit
$ git commit -m "aquí un mensaje"
# Subir cambios a github
$ git push -u origin master
Comandos Git
https://elbauldelprogramador.com/mini-tutorial-y-chuleta-de-comandos-git
http://blog.santiagobasulto.com.ar/programacion/2011/11/27/tutorial-de-git-en-espanol.html https://es.wikipedia.org/wiki/Git http://rogerdudler.github.io/git-guide/index.es.html