Bitbucket and GIT LFS (Does BB automatically detects if a repo needs LFS)

G_ W_ July 3, 2024

Hello,

Could you please help me with the following questions regarding LFS support in Bitbucket :

  • When migrating from a 3rd party GIT repository that contains large files (>=100MB), does  Bitbucket automatically flag the repository as needing LFS?
  • If we push the repository to BB as is (LFS not enabled), will BB error out and refuse the push? 
  • Is there a way to migrate a "regular" GIT repository to an LFS enabled repository without re-writing GIT history? (repo cloning speed is not a concern for us)

Best,

G.

3 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2024

Hi G.,

The 100 MB limit is not enforced if you push to an empty Bitbucket Cloud repo with no commits.

Additionally, it is possible to disable the limit (if you are a repo admin) from Repository settings > Repository details > select ADVANCED > uncheck the option Block pushes with files over 100MB.

You mentioned that cloning speed is not a conecrn for you. Please keep in mind that apart from cloning speed, multiple large files also contribute to the repository size. Every Bitbucket Cloud repo has a limit of 4 GB. If a repo exceeds this limit, it will become read-only and you won't be able to push any changes.

The extra storage of 100 GB for $10/Month is only for LFS, and not for the core Git repo.

If you want to track with LFS files that are already committed to a repo, then a history rewrite is necessary.

Please feel free to reach out if you have any other questions!

Kind regards,
Theodora

G_ W_ July 8, 2024

Thank you @Theodora Boudale !

 

May I ask a follow up question: Is the 4GB limit per repository? Is there a limit on how big the a Bitbucket Workspace can be (Is there a limit of the total size of all the repositories under an account) ?

 

Best,

G.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2024

You are very welcome, G.!

The 4 GB limit is per repository. We don't have a limit on the total size of all repos under a workspace.

Please feel free to let me know if you need anything further.

Kind regards,
Theodora

0 votes
Nicolas Grossi
Banned
July 8, 2024

@G_ W_ If you have an active license you might ask that to support team support.atlassian.com

G_ W_ July 8, 2024

Thank you Nicolas!

G.

Like Nicolas Grossi likes this
0 votes
Nicolas Grossi
Banned
July 3, 2024
G_ W_ July 3, 2024

Hi Nicolas, 

 

Thank you for your reply. Could I ask you a follow up question:

  • If we buy the 100GB storage for $10/Month, can we use it for only LFS storage, or can it be used for storing additional "regular" GIT repositories?  

Thank you again!

G.

Suggest an answer

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

Atlassian Community Events