hii..
My repository size becomes over the limit of 4gb. So I reset the branch to commit before the large commit and gave git push --force. The large files were deleted now but repo size if still 4.8 gb.
Hi, @Priya!
I ran the GC against your repository and managed to reduce its size to 1.2 GB.
I also would like to share with you that we already have a feature request to allow users to mark repositories for git GC, as you can check here:
Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it here.
Feel free to share any additional questions or concerns regarding this case.
Kind regards,
Caroline
Hello @Priya ,
Thank you for reaching out to Atlassian Community!
Doing a force push after rewriting history locally will mark the remote repo with unreferenced objects and replace it with what you have pushed. The size will increase because it includes the local size and your remote size. In such cases, we run the garbage collector to remove the unreachable objects to reduce repository size. Kindly contact support in order to get GC executed on your repo.
Additionally, I would like to suggest to refer this KB page that explains the steps to reduce the repository size.
Moreover you can enable the Lab under personal account settings "Delete dangling commits when over size limit", use below steps to enable the lab.
Hope that helps!!
Thanks!
Harsh Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.