Difference between revisions of "Mercurial"

From Carpet Workshop
(Created page with 'Useful commands for Mercurial: * hg clone * hg pull * hg update * hg rebase --> hold your local change, update and then commit your changes * .hgrc * hg commit --> to your ...')
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Useful commands for Mercurial:
 
Useful commands for Mercurial:
  
* hg clone
+
* hg clone --> create local instance of repository
* hg pull
+
* hg pull   -->  pull changes from repository to local instance
* hg update
+
* hg merge --> merge these changes with local changes
 +
* hg update --> updates local instance to repository's instance
 
* hg rebase  --> hold your local change, update and then commit your changes
 
* hg rebase  --> hold your local change, update and then commit your changes
  
* .hgrc
+
* .hgrc --> Configuration file set on your home directory. Example:
 +
** [ui]
 +
** username= John Doe <john.doe@some.where.edu>
 +
** [extensions]
 +
** rebase =
 +
** record =
  
 
* hg commit  --> to your local repository only
 
* hg commit  --> to your local repository only
 
* hg push    --> to the remote repository
 
* hg push    --> to the remote repository
* hg record
+
* hg record --> sequentially chose what local changes to push
  
 
* GUI MacHg
 
* GUI MacHg

Latest revision as of 18:52, 25 August 2010

Useful commands for Mercurial:

  • hg clone --> create local instance of repository
  • hg pull --> pull changes from repository to local instance
  • hg merge --> merge these changes with local changes
  • hg update --> updates local instance to repository's instance
  • hg rebase --> hold your local change, update and then commit your changes
  • .hgrc --> Configuration file set on your home directory. Example:
    • [ui]
    • username= John Doe <john.doe@some.where.edu>
    • [extensions]
    • rebase =
    • record =
  • hg commit --> to your local repository only
  • hg push --> to the remote repository
  • hg record --> sequentially chose what local changes to push
  • GUI MacHg