Difference between revisions of "Mercurial"

From Carpet Workshop
 
Line 7: Line 7:
 
* 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

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