How to develop on a branch in HG
Posted
by michael
on Stack Overflow
See other posts from Stack Overflow
or by michael
Published on 2010-04-25T23:32:14Z
Indexed on
2010/04/25
23:33 UTC
Read the original article
Hit count: 218
hg
Hi,
I would like to do some experimental work in a hg project. So I would like to create branch, commit to it. And if the experiment works, I can merge it back to main branch.
In git, I can do
$git branch experimental
$git checkout experimental
(edit file)
$ git commit -a
$ git checkout master
I read http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/, it said ' hg branch feature'. But what is next? I don't follow.
I appreciate if you can help.
Thank you.
© Stack Overflow or respective owner