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

De WikiEducator
Saltar a: navegación, buscar
(Página creada con '{{MiTitulo | Control de versiones con mercurial}} == ¿Qué es mercurial? == * http://mercurial.selenic.com == Documentación == * http://mercurial.selenic.com/guide/ * http:/…')
 
Línea 7: Línea 7:
 
* http://mercurial.selenic.com/guide/
 
* http://mercurial.selenic.com/guide/
 
* http://mercurial.selenic.com/wiki/UnderstandingMercurial
 
* http://mercurial.selenic.com/wiki/UnderstandingMercurial
 +
* Algunos tutoriales sencillos:
 +
** http://wiki.amxmodx.org/Mercurial_Tutorial
 +
** http://blog.rvburke.com/2006/08/25/control-de-versiones-con-mercurial-i-conceptos-generales/ (y siguientes)
  
 
== Configuración ==
 
== Configuración ==
Línea 29: Línea 32:
 
$ hg log # muestra al historia del repo
 
$ hg log # muestra al historia del repo
 
</source>
 
</source>
 +
 +
== 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 ==
 +
* http://tortoisehg.bitbucket.org/
 +
* http://tortoisehg.bitbucket.org/manual/2.1/quick.html
 +
* http://draketo.de/light/english/mercurial/short-introduction-mercurial-tortoisehg

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