title: How to transfer a git repository with LFS file to another repository?
body: <p>We have a local git server, with LFS files. We are planning to move everything on MS Azure DevOps.
  After some research, I read that it was advise to do a &quot;mirror&quot; clone, to have everything(tags at least):</p>
  <blockquote>
  <p>git clone --mirror</p>
  </blockquote>
  <p>Then, since I've some LFS files, I wanted to get them too:</p>
  <blockquote>
  <p>git lfs fetch --all</p>
  </blockquote>
  <p>But I get this error:</p>
  <pre><code>Error: Failed to call git rev-parse --git-dir --show-toplevel: &quot;fatal: this operation must be run in a work tree\n&quot;
  Not in a git repository.
  </code></pre>
  <p>For what I'm reading, git lfs fetch doesn't work on a <code>bare</code> repository(not that I know what this is, but I think it's related to the <code>--mirror</code> option.</p>
  <p>So my question is: What should I do to transfer everything to this new repository? (the local server will be shutdown after this).</p>
  <p>Thank you</p>