Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Size of repository doesn't reduce after switching to LFS


We've encountered an issue where our repository size hasn't decreased after switching to LFS. Our source repository contains several large files such as pictures and archives that we're trying to move to LFS storage. To do this, we've implemented a migration plan with the following steps:

  1. Install git lfs
  2. Clone the repository using 'git clone <repo url>'
    "Allow LFS" option was set to ON in repo settings on Bitbucket server
  3. Navigate to the cloned repository using 'cd <repo>'
  4. Run 'git lfs migrate import --include="*.bin" --everything'
  5. Run 'git reflog expire --expire-unreachable=now --all'
  6. Run 'git gc --prune=now'
  7. Finally, force-push the changes using 'git push --force'

After completing these steps, the .bin files were successfully moved to the LFS storage, but when checking the repository size, it appeared that nothing had changed in addition to the LFS moved files. We've waited for server-side GC for a couple of days, but there hasn't been any change in the repository size. The 'git lfs ls-files' command now shows links instead of specific files. We're currently seeking assistance from the community support forum on how to resolve this issue.

Bitbucket DC server version 7.6.20


1 answer

Hi @Boris Kulagin

Was the repository enabled with LFS in the repository setting as well? Did you go through the following documentation -

Best regards,
Baskar Annamalai


Definitely yes.

"Allow LFS" option was enabled in repository settings after cloning.
Original post has been updated.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events