title: How does npm version work?
body: <p>I'm a little hazy on how <a href="https://docs.npmjs.com/cli/version" rel="noreferrer"><code>npm version</code></a> works. The documentation says:</p>
  
  <blockquote>
    <p>If run in a git repo, it will also create a version commit and tag.</p>
  </blockquote>
  
  <p>Does that mean I don't have to run <code>git commit</code> or <code>git tag</code> or does it just take the place of <code>git tag -a &lt;version&gt;</code>? If I did something like this would I be creating a double commit?</p>
  
  <pre><code>git add . -A
  git commit -m "&lt;commit message&gt;"
  git push origin master
  npm version &lt;patch|minor|major&gt; -m "&lt;version description&gt;" ## instead of git tag -a &lt;version&gt; ##
  git push --tags
  </code></pre>