远程:此存储库当前为1.1 GB。如果超过2 GB,它将进入只读模式

问题描述 投票:1回答:1

当我运行git push时,我得到了这个

⚡️  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)

远程:此存储库当前为1.1 GB。如果超过2 GB,它将进入只读模式。

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

当我克隆我的仓库时,请检查大小。只有

enter image description here


我跑步时

rm -rf .git并推送到新的repo

enter image description here

这里发生了什么?

我错过了什么?

git bitbucket
1个回答
0
投票

它可能是git gc长时间运行[[not的存储库。

首先创建,然后直接在BitBucket站点上删除一个分支(本地为

not

):这将触发BitBucket上的git gc。然后查看警告是否仍然存在。如果没有,请像在[reflog expire + prune --expire + git gc --aggressive]中一样尝试push -f,然后尝试How to cleanup garbage in remote git repo,看是否有帮助。
© www.soinside.com 2019 - 2024. All rights reserved.