hg in ruby

To use Mercurial (hg) for version control in Ruby, you will need to install the Mercurial command line utility. Once installed, you can use the Mercurial command line interface in Ruby to interact with your repository.

Here are some steps to get started with using Mercurial (hg) in Ruby:

  1. Install Mercurial:
sudo apt-get install mercurial
31 chars
2 lines
  1. Navigate to your project directory:
cd /path/to/project
20 chars
2 lines
  1. Create a new Mercurial repository:
hg init
8 chars
2 lines
  1. Add your files to the repository:
hg add .
9 chars
2 lines
  1. Commit your changes:
hg commit -m "Initial commit"
30 chars
2 lines
  1. Start working with branches, and push and pull from remote Mercurial repositories:
hg branch my-new-feature
hg push
hg pull
41 chars
4 lines

You can find more information on how to use Mercurial (hg) on the Mercurial website or by using the command line help:

hg help
8 chars
2 lines

gistlibby LogSnag