0

I am trying to push files to a github repo including an access database, however I get the following issue:

remote: warning: File AnyLogicDB.accdb is 61.40 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB

remote: error: Trace: 14017da929b66e7b755cf895f892372e0b7d0db9551c976c08fadb19d5f5b2fb

remote: error: See https://gh.io/lfs for more information.

remote: error: File AnyLogicDB.accdb is 423.75 MB; this exceeds GitHub's file size limit of 100.00 MB

remote: error: File AnyLogicDB-Spot.accdb is 156.96 MB; this exceeds GitHub's file size limit of 100.00 MB

remote: error: File AnyLogicDB.accdb is 1218.54 MB; this exceeds GitHub's file size limit of 100.00 MB

remote: error: File AnyLogicDB.accdb is 1218.54 MB; this exceeds GitHub's file size limit of 100.00 MB

remote: error: File AnyLogicDB-Spot.accdb is 156.96 MB; this exceeds GitHub's file size limit of 100.00 MB

remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to '

Although the file is actually 400kB in size

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Hadj Ahmed
  • 31
  • 5
  • Which file is actually 400 kB in size? – mkrieger1 Jun 15 '23 at 21:54
  • ....why are you storing `.accdb` files in Git? You shouldn't store large binary files in normal Git, instead you should use Git LFS - that's how you store large files. – Dai Jun 15 '23 at 21:55
  • AnyLogicDB.accdb and AnyLogicDB-Spot.accdb. It is not large anyways we just need it as a reference. – Hadj Ahmed Jun 15 '23 at 21:55
  • @mkrieger1 I suspect it's 400KB now after the OP clicked on _everyone's favourite_ toolbar button in MS Access: "Compact and Repair" - while the 1GB+-sized files would be the db file from earlier commits. – Dai Jun 15 '23 at 21:56
  • I did use Compact and Repair and they are both empty. – Hadj Ahmed Jun 15 '23 at 21:57
  • Does this answer your question? [Git lfs - "this exceeds GitHub's file size limit of 100.00 MB"](https://stackoverflow.com/questions/33330771/git-lfs-this-exceeds-githubs-file-size-limit-of-100-00-mb) – Filburt Jun 15 '23 at 22:19
  • The file is not large to go for this. – Hadj Ahmed Jun 15 '23 at 23:51
  • The current file size does not matter. What matters is the size of previously-committed files. Git stores every version of the file. If you committed a large file once and shrink it later, the large file is still stored in the commit history. – knittl Jun 16 '23 at 06:16
  • So the solution would be git lfs? – Hadj Ahmed Jun 16 '23 at 09:14

0 Answers0