2

I am getting this error when trying to push to my repo. Anyone know what could be causing it?

error: unpack failed: error Object too large (1,957,642 bytes), rejecting the pack. Max object size limit is 1,048,576 bytes. ! [remote rejected] master -> master (n/a (unpacker error))

Alex Bartling
  • 21
  • 1
  • 1
  • 3

1 Answers1

1

The maximum file size you can upload to Squarespace using Git is 1MB

Rudy Lee
  • 438
  • 5
  • 18
  • Make sure each file inside your git repository is below 1MB – Rudy Lee Feb 25 '15 at 23:35
  • I deleted the file that was larger than 1MB, commited the change, but when I push I still get the same "Object too large" error -- any idea why it is still getting picked up? – vesperae Sep 21 '16 at 14:13
  • 1
    if you delete the file and create a new commit, the file will still exist in git history. The solution is either squash the commits or amend it. – Rudy Lee Sep 23 '16 at 09:11