I am pushing my iOS app code to Bitbucket, and it's given me the error:
Repository is in read only mode (over 2 GB size limit).
I've realised I have been pushing some files (Pod files, if you know what that is) to Bitbucket when actually I don't need to. I now want to clear up space in Bitbucket by deleting the folder /Pods
from the repository.
I have also added this to my .gitignore
:
/Pods/*
which I'm hoping means it will ignore the Pods folder and all that's in it. I have some committed changes that it won't let me push because of the read-only mode. I tried deleting the Pods folder from my local machine and pushing that but that won't work either. How can I:
- Push these committed changes
- Get my Bitbucket repository out of read-only mode by deleting the
/Pods
folder. - Make sure that Bitbucket ignores the
/Pods
folder in the future
Incidentally, I'm using SourceTree for my repository handling, but willing to use the command line if necessary to get me out of this mess.