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 "mirror" clone, to have everything(tags at least):
git clone --mirror
Then, since I've some LFS files, I wanted to get them too:
git lfs fetch --all
But I get this error:
Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: this operation must be run in a work tree\n"
Not in a git repository.
For what I'm reading, git lfs fetch doesn't work on a bare
repository(not that I know what this is, but I think it's related to the --mirror
option.
So my question is: What should I do to transfer everything to this new repository? (the local server will be shutdown after this).
Thank you