Having the same problem and trying to follow steps here:
Importing repository in Azure DevOps with Git LFS
At step 3 in the second answer, I get output that looks correct to me:
$ git lfs fetch source --all
fetch: 35 objects found, done.
fetch: Fetching all references...
Downloading LFS objects: 100% (35/35), 42 MB | 12 MB/s
But no files appear on my local filesystem. I'm pretty sure they have to for the rest of the steps to work, so I'm stuck here until I figure it out.
Having the same problem and trying to follow steps here:
Importing repository in Azure DevOps with Git LFS
At step 3 in the second answer, I get output that looks correct to me:
$ git lfs fetch source --all
fetch: 35 objects found, done.
fetch: Fetching all references...
Downloading LFS objects: 100% (35/35), 42 MB | 12 MB/s
But no files appear on my local filesystem. I'm pretty sure they have to for the rest of the steps to work, so I'm stuck here until I figure it out.
Share Improve this question edited Mar 24 at 22:39 jessehouwing 115k23 gold badges279 silver badges377 bronze badges asked Mar 24 at 21:36 psantuccpsantucc 72 bronze badges2 Answers
Reset to default 2You need to run git lfs checkout
to populate the local folder with the real files after calling fetch
.
Fetch populates the blob in the .git
folder, downloading all the content to you local system. The Checkout then replaces all the lfs pointer files.
Instead of fetch
you can also use git lfs pull
, which basically performs a fetch
followed by a checkout
.
If you're migrating, you don't need to perform the pull
or checkout
, after downloading the files using fetch
, you can push them to the target system using git lfs push --all
, but if you want to inspect the files locally, checkout
is needed as an in-between step.
As stated on "Q: What if my source repository contains Git LFS objects?", the "Import repository" feature doesn't import Git LFS objects. So, you can consider manually importing the repository using git CLI when the source repos has LFS objects:
Clone the source repository into a local folder on your machine.
git clone --bare <Clone URL of the source repo> cd <Name of source repo>.git
Create a new empty repository as the target repository on Azure DevOps.
Copy/push the source repo from local to the target repo.
git push --mirror <Clone URL of the target repo>
Fetch all LFS objects from remote of source repo, and copy/push them to the target repo.
git lfs fetch origin --all git lfs push --all <Clone URL of the target repo>
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744227544a4564082.html
评论列表(0条)