The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I've got a couple of git repos that have `git lfs` turned on and I'd like to move them to a new project in Bitbucket. However bitbucket is telling me that I cann't move them because of `git lfs` support, why is that and what can I do about it.
BTW, I'm not really sure that these repos really need `git lfs` support as the files in lfs are only a couple of MB each.
Hi, @Matt Schuckmann!
Thank you for reaching out to Atlassian Community!
Currently, the transfer of repositories with Git LFS files is disabled, this is a limitation for Git LFS. However, we have a workaround for that:
Instead of transferring the repo, you can clone the repo to your local machine, then create a repo in Bitbucket, and push to that.
When you do this, all files and the Git history will be available in the new repo, but the metadata for such things as issues, pull requests won't be copied over. Furthermore, you'll have to set up users and access permissions for the new repo.
Clone the Git LFS repo to your local machine as usual:
Fetch the Git LFS history:
git lfs fetch --all origin
Create a new repo in Bitbucket.
Add a remote locally that points to the new repo:
git remote add new-origin <URL to new repo>
Now push to the new repo:
git push -u new-origin --all
This pushes the repo and its refs for the first time.
Push Git LFS data to the new repo:
git lfs push --all new-origin
Finally, update the remotes for the new repo:
git remote set-url origin <URL to new repo>
git remote set-url --push origin <URL to new repo>
Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.
Kind regards,
Caroline
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.