Bitbucket Repository Over the Size Limit

Share
Workaround available All Updated November 13, 2026Based on 6 user reportsHow we research

Quick answer

Pushes are rejected once a repository passes its limit (1 GB per workspace on Free, 4 GB per repository on paid plans). Undo the last push, rewrite history to remove large files, and ask Support for garbage collection if needed.

Most likely fix: Undo the last push

How to fix it

Try these in order — the most common fix is first.

  1. 1. Undo the last push

    1. git branch <keeper>
    2. git reset --soft @{u}^ (or --hard if nothing to keep)
    3. git push --force
    4. git merge --ff-only <keeper>, then git branch -d <keeper>
    Did this fix it?
  2. 2. Remove large files from history

    1. Rewrite history with BFG or git filter-repo, or move files to Git LFS
    2. Force push, then ask collaborators to re-clone
    Did this fix it?
  3. 3. Run garbage collection

    1. Bitbucket runs GC after the undo and again if usage stays at 75% of the limit
    2. If still blocked, ask Atlassian Support to run GC; some users needed this even after cleanup
    Did this fix it?
  4. 4. Prevent it

    1. Keep 'Block pushes with files over 100 MB' enabled in Advanced settings
    2. Use .gitignore, Git LFS or an artifact registry
    Did this fix it?

Symptoms

remote: Repository is over the size limit (4 GB) and will not accept further additions. Warning appears at 2 GB.

Why it happens

  • Large binaries committed to history
  • Build artifacts or media in the repo
  • Deleting files does not shrink git history

This guide also covers

  • bitbucket repository size limit exceeded
  • bitbucket repository is over the size limit 4gb
  • bitbucket 1gb limit

Still not working?

If Bitbucket keeps failing, you're not alone. See every Bitbucket problem users report or the alternatives people switch to.

We build software. Any software.

Paying for apps that don't quite fit? We build exactly what you need.

We're a small team of developers who build custom software fast. Not just tools like Bitbucket: web and mobile apps, games, desktop software, AI tools, internal tools: whatever you have in mind. We build and run our own products too: booking platforms, games, learning apps. See our work

  • Web apps & SaaS
  • Mobile apps (iOS & Android)
  • Games
  • Desktop software
  • AI tools & automations
  • Internal tools & dashboards
  • Client portals & booking
  • Your own version of any tool
  • ✓ Free 15-min call to scope it
  • ✓ Price agreed up front
  • ✓ Your data, your code
Fixed it? Share this guide

The same problem in other apps

All plan limits, paywalls & watermarks guides →

Other Bitbucket errors