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

De WikiEducator
Saltar a: navegación, buscar
(Documentación)
(TortoiseHG)
Línea 48: Línea 48:
 
* http://tortoisehg.bitbucket.org/manual/2.1/quick.html
 
* http://tortoisehg.bitbucket.org/manual/2.1/quick.html
 
* http://draketo.de/light/english/mercurial/short-introduction-mercurial-tortoisehg
 
* http://draketo.de/light/english/mercurial/short-introduction-mercurial-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

Revisión de 00:09 5 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