-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Changes blocked by files exceeding the file size limit #3527
Comments
Hey @dkrishnan7hub, that's a good question 🚀 Regarding the following statement:
The feature only blocks files above a configured size limit from being pushed to the remote repository, but doesn't prevent you from creating and committing such files locally. In your case, you most likely created and committed such a limit exceeding file locally, and where you were trying to push it, gitness blocked it (I assume the folder you were referring to was your local clone, as the There's a few ways you can resolve your problem: 1. Remove the file that's exceeding the file limitIn case the file was committed by accident, or isn't really needed, you can remove the file to resolve the problem. Some useful commands:
After you've removed ALL occurrences of the file (e.g. 2 Decrease the file sizeIf you can't remove the file, but it's possible to reduce it's size, you can follow the same steps as above, but instead of removing the file from ALL commits where it exceeds the limit, you'll have to update it. 3. Increase the file size limit for the repoIf the file is necessary and can't be removed or decreased in size, you can update the max file size limit of the repository. curl '{GITNESS_ENDPOINT}/api/v1/repos/{REPO_PATH}/+/settings/general' \
-H 'Authorization: XXX' \
-X PATCH \
--data '{
"file_size_limit": 1000000
}'
You can then verify the new limit has been set correctly by making the following API call: curl '{GITNESS_ENDPOINT}/api/v1/repos/{REPO_PATH}/+/settings/general' \
-H 'Authorization: XXX' |
Closing this issue for now, feel free to reopen if there's a related issue. |
We are getting the following error: Changes blocked by files exceeding the file size limit
And interesting the file thats exceeding the size limit is within the .git folder
\.git\objects\31\c3dd7f2bf911dc68461ec6cbff002d9cce017d
Could you please advice how we can increase the file size limit or resolve this problem?
Thanks in advance, cheers!
The text was updated successfully, but these errors were encountered: