Suggestions on how to migrate to BitBucket from 3rd party GIT hosting service

G_ W_ June 27, 2024

Hello,

We are thinking of migrating some GIT repositories that is currently hosted by a 3rd party GIT hosting service to Bitbucket cloud, We are looking for more information on how to do this properly and see if there's any migration tools that would be available to us. 

Also, my understanding is that if a file's size exceeds 100MB, it would trigger GIT LFS in BitBucket. What are the implications of triggering GIT LFS?

 

Best and thank you in advance for your help!

G. W.

1 answer

1 accepted

1 vote
Answer accepted
Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 27, 2024

Hi @G_ W_ ! Welcome to the Atlassian Community!

Have a look at this if all you're doing is just repo data.  https://www.atlassian.com/git/tutorials/git-move-repository

Here's more information on Git LFS. https://support.atlassian.com/bitbucket-cloud/docs/manage-large-files-with-git-large-file-storage-lfs/

G_ W_ June 28, 2024

Thank you Robert!

 

If I may ask a few follow up questions:

1. How does Bitbucket calculate the file size in the LFS system? Say that there is a 200MB file in the GIT history. If it is modified and committed 3 times, would Bitbucket consider 200 x 3 =600MB used towards the LFS storage? Am I correct to assume that if the 200MB file remains un-changed in future commits, there wouldn't be any increase in file size?

2. How can we add additional storage to the LFS storage? (we are currently on the Academic plan)

Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 28, 2024

1.  Yes, each commit would consume storage as you outlined.

2. Here's the link with instructions on purchasing additional storage.  https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/

G_ W_ July 1, 2024

Thank you so much Robert!

Like Robert Wen_Cprime_ likes this
G_ W_ July 1, 2024

Hi Robert,

 

If you don't mind me asking another question regarding LFG:

When migrating GIT repositories to BitBucket, does BB automatically detects repos that needs LFS and automatically converts them to repos with LFS enabled? Do we have the ability to choose which repo(s) will have LFS enabled? From what I read so far, it seems that we need to use 3rd party tools such as BFG or git-lfs-migrate tools to first re-write git history and then add large files to the GIT LFS? If that's true, do you have a recommendation on choosing BFG vs git-lfs-migrate or other tools?

Thank you again!

G.W.

Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

The two are pretty equivalent.  I'm going to side with BFG only because git-lfs-migrate does this on a branch basis.

I think it's better if you have further questions you should create them as new questions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events