mercurial Getting started with mercurial Installation and Setup

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

You can download Mercurial from the project's website, and there are graphical utilities for Windows, Linux and OSX if you'd prefer that to a command line interface. Most Unix package managers include Mercurial, for example on Debian/Ubuntu:

$ apt-get install mercurial

You can verify Mercurial is installed by running:

$ hg --version

Setup

Mercurial works out of the box, but you'll likely want to configure Mercurial to know who you are before you go further. To associate a username with your commits edit ~/.hgrc (or mercurial.ini in your home directory on Windows) and add the following lines:

[ui]
username = Your Name <[email protected]>

If you don't want to do this you can always specify a username when you commit with the -u flag, e.g.:

$ hg commit -u "Your Name <[email protected]>"


Got any mercurial Question?