Diferencia entre revisiones de «Usuario:Lmorillas/intro mercurial»

De WikiEducator
Saltar a: navegación, buscar
Línea 8: Línea 8:
 
* http://mercurial.selenic.com/wiki/UnderstandingMercurial
 
* http://mercurial.selenic.com/wiki/UnderstandingMercurial
 
* http://www.selenic.com/mercurial/hgrc.5.html
 
* http://www.selenic.com/mercurial/hgrc.5.html
 +
* http://hgbook.red-bean.com/read/a-tour-of-mercurial-the-basics.html
  
 
* Algunos tutoriales sencillos:
 
* Algunos tutoriales sencillos:

Revisión de 09:31 31 oct 2011


¿Qué es mercurial?

Documentación


Configuración

  • Crea el archivo ~/.hgrc (o mercurial.ini en el directorio home de Windows)
  • Añade la sección ui (user interaction) con tu nombre de usuario:
[ui]
username = Pilar Martínez <pilar.m@micasa.com>

Workflow básico

$ hg init project  # inicializa proyecto
$ cd project
$ (add files)
$ hg add # indica a Mercurial que siga unos ficheros
$ (do some changes)
$ hg diff # muestra cambios
$ hg commit # confirma los cambios
$ hg cp # copia ficheros y carpetas
$ hg mv # mueve ficheros y carpetas
$ hg log # muestra al historia del repo

Comandos básicos

  • clone - Copies or downloads a repository.
  • add - Adds a file or directory to the local source tree.
  • remove - Removes a file or directory from the local source tree.
  • commit - Commits any local changes to your local source tree.
  • pull - Retrieves changesets from another repository.
  • update - Updates source code with all pending pulled changes.
  • push - Pushes your changesets to a remote repository.
  • merge - Merges two repositories together (explained later)

TortoiseHG

Configuración
http://tortoisehg.bitbucket.org/manual/2.1/quick.html#configuring-tortoisehg
Guía rápida
http://tortoisehg.bitbucket.org/manual/2.1/quick.html