1

When I ran git push I got this

⚡️  js  git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 485 bytes | 485.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)

remote: This repository is currently 1.1 GB in size. If it exceeds 2 GB it will be put into read-only mode.

remote: Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw
To bitbucket.org:user/reponame.git
   73012de..c96b1fd  master -> master

When I clone down my repo, and check size. It's only

enter image description here


When I ran

rm -rf .git and push to new repo

enter image description here

What is going on here?

What did I missed ?

code-8
  • 54,650
  • 106
  • 352
  • 604

1 Answers1

1

It could be a repository where git gc was not run from a long time.

Start by creating, then deleting a branch directly on the BitBucket site (not locally): that should trigger a git gc on BitBucket.
See then if the warning persists.

If not, try a reflog expire + prune --expire + git gc --aggressive, followed by a push -f, as done in "How to cleanup garbage in remote git repo", to see if that helps.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250