Basic mercurial commands

I’ve started using the Mercurial version control system. I like that it doesn’t leave a whole heap of files around, just one .hg directory. The commands to get started are fairly straightforward:

  1. hg init .
  2. hg status: Look at what is included or not.
  3. hg add *: Add everything in the directory.
  4. hg commit: Here you can enter some initial comment about the repository
  5. hg view: This allows you to look at the history of the repository through a GUI

Leave a Reply