title: “tag already exists in the remote" error after recreating the git tag
body: <p>I get the following error after I run the steps below:</p>
  
  <pre><code>To git@provider.com:username/repo-name.git
   ! [rejected]        dev -&gt; dev (already exists)
  error: failed to push some refs to 'git@provider.com:username/repo-name.git'
  hint: Updates were rejected because the tag already exists in the remote.
  </code></pre>
  
  <ol>
  <li>Created the repository</li>
  <li>Cloned the repo on the local machine.</li>
  <li>Modified the README file, commited the changes and pushed the commit.</li>
  <li>Created tag <code>dev</code>: <code>git tag dev</code></li>
  <li>Pushed tags: <code>git push --tags</code></li>
  <li>Modified the README file, commited the changes and pushed the commit.</li>
  <li><p>Deleted tag <code>dev</code> , created it again and pushed tags:</p>
  
  <pre><code>git tag -d dev
  git tag dev
  git push --tags
  </code></pre></li>
  </ol>
  
  <p>Why is this happening?</p>
  
  <p>I am on Mac. My friends that use Linux (Ubuntu) don't have this problem. I know that I can use <code>git push --tags -f</code> to force the tag update, but this is dangerous (e.g. rewriting a commit made by mistake only in the tag, not in the branch). </p>