I made a commit with an unexpected folder added, which made the repo over 5GB.
Pushed to bitbucket, now it's read only. The repo was really small before, around 30 files, I tried resetinng to a commit before, but somehow it's stuck at that size even after removing the files and doing the recommended gc, etc.
So on my server I just deleted the .git folder and started over since it was just a few files and changes were not really important. But now the repo is read only on bit bucket.
So I can't git push --delete the branch which I want to do and then just push my local branch up
Any ideas how to fix it? I even tried the delete link on the bitbucket website for the branch, but it wouldn't delete. That's all I really need to do at this point, delete that branch and get rid of whatever is clogging the pipes in this repo.
Is this a cloud Bitbucket? Just checking as that can set your repo to read-only if it exceeds the size.
If so, you can try a git reset ( see - https://git-scm.com/docs/git-reset )
and the retry the push ( possibly with the force option )
Thanks! We finally managed to delete the repo and get it working again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problem, glad to help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.