title: How to tag and go to a tag in hg
body: <p><a href="http://wiki.pylonshq.com/display/pylonscookbook/Mercurial+for+Subversion+Users" rel="noreferrer">This website</a> says <code>hg tag 1.0</code> is to get my Mercurial repository to a tag name.</p>
  
  <p>How can I switch my repository to that tag name?</p>
  
  <pre><code>$ hg tag myTag1.0
  $ &lt;edit more files&gt;
  $ hg commit -m "a message"
  $ hg how to go back to that tag?
  </code></pre>
  
  <p>And if I make a new <code>hg commit</code> here, what will happen? Will it go to the branch of <code>myTag1.0</code>? Or will it stay on the default branch?</p>