Hello Experts,
i have git repository on bit bucket for a react native project.
now a days all my push commands are rejected.
this the example:
azizmacbook@AbdulazizsMBP2 professoryrn % git push --force origin master
Uploading LFS objects: 100% (2/2), 1.5 GB | 0 B/s, done.
Enumerating objects: 36331, done.
Counting objects: 100% (36331/36331), done.
Delta compression using up to 12 threads
Compressing objects: 100% (17614/17614), done.
Writing objects: 100% (36329/36329), 845.08 MiB | 2.12 MiB/s, done.
Total 36329 (delta 16900), reused 36224 (delta 16853), pack-reused 0
remote: Resolving deltas: 100% (16900/16900), completed with 1 local object.
remote: Checking connectivity: 36329, done.
remote: Your push has been blocked because it includes at least one file that is 100 MB or larger. Bitbucket Cloud recommends using Git LFS for large files to prevent repositories from growing too large and reaching the 4 GB repo size limit. Learn more about Git LFS at https://support.atlassian.com/bitbucket-cloud/docs/manage-large-files-with-git-large-file-storage-lfs/. If necessary, the file size limit can be disabled by an admin in Repository settings. Learn more at https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Avoid-adding-large-files.
To https://bitbucket.org/barmjni/professoryrn.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://bitbucket.org/barmjni/professoryrn.git'
Hi @Aziz Alsh
This is due to a recent setting that was automatically enabled on all repositories to prevent repo size from exceeding:
A repository admin will need to navigate to Repository Settings > Repository Details and click the Advanced tab - from here they will need to untick Block pushes with files over 100MB so that you may proceed with the push.
Cheers!
- Ben (Bitbucket Cloud Support)
I am having a similar issue. I enumerated all the files for the local project. There is no single file that is 100 MB or larger. Still, I get the above error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used Git LFS to solve the issue. I am still intrigued as to why I was getting the error when there is no single file that is 100 GB or more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel
It's unclear unless I had seen the verbose output, there's a chance that the push would have exceeded the 4GB limit and this is why the push was blocked. I'm glad to hear LFS solved your issue :)
Cheers!
- Ben (Bitbucket Cloud Support)
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.