Problem: "PUSH Failed refs / head / - pre-receipt hook rejected"
I ran into the problem of the inability to transfer my changes to my source branch and anything to the main branch of the repository of a specific project, since the size of this repo exceeded the hard limit of 2 GB. It was a mistake. This is because we unknowingly placed test data in bitbucket from other branches of testing.
PUSH Failure refs / head / - pre-hook rejected
So, the verification attempt is that the same thing with another project repository, and they had no problems.
Fix:
My colleague noticed that when we cloned the project locally, the project size was 110 MB. So, we started clearing previously merged branches and active branches that are no longer required. As soon as this cleaning was done for several branches, we realized that the repo size sharply decreased from 2 GB to 120 MB. Then we tried to push the changes to my branch, and it worked.
Dugini Vijay Nov 28 '18 at 17:45 2018-11-28 17:45
source share