Skip to content

Instantly share code, notes, and snippets.

@gatoravi
Created July 16, 2017 20:22
Show Gist options
  • Save gatoravi/9315219a1f9a3bf202ab9adb36e30d90 to your computer and use it in GitHub Desktop.
Save gatoravi/9315219a1f9a3bf202ab9adb36e30d90 to your computer and use it in GitHub Desktop.
Set file limits in git

The default soft (warning) and hard (error) size limits are set to 500,000 and 10,000,000 bytes but can be overriden through the hooks.filesizesoftlimit and hooks.filesizehardlimit settings respectively:

$ git config hooks.filesizesoftlimit 100000
$ git config hooks.filesizehardlimit 4000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment