title: Move git repo with git clone --mirror and git push --mirror
body: <p>I have to move a couple of repos from Gitlab to Bitbucket and discovered that the easiest way to do it seems to be:</p>
  
  <ol>
  <li>Create new empty repository in Bitbucket</li>
  <li><code>git clone --mirror git@gitlab.com:path/to/repo.git</code></li>
  <li><code>cd repo.git</code></li>
  <li><code>git remote set-url origin git@bitbucket.org:path/to/repo.git</code></li>
  <li><code>git push --mirror</code></li>
  </ol>
  
  <p>This seems to copy the entire repo including tags, all branches etc. and I haven't discovered any disadvantages of this method yet. However, as I haven't seen this method anywhere on the internet, I'm afraid I'm missing something.</p>
  
  <p>Can I safely use this method and remove the old repositories afterwards?</p>