Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

my push command all getting blocked- HELP

Aziz Alsh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2024

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'

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2024

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events