Git commit "fatal: unable to generate diffstat"
Asked Answered
S

1

9

While attempting to commit a modified CSV file (12.4MB, ~164k lines), I received the titular error message. There's only 2 results in Google for that message: 1) the source code that throws it and 2) a dead link.

Any ideas? I'm working both from the Github-provided git shell, as well as from the git client within PyCharm.

I also cannot run a standard diff on that file from the command line, but I can from within PyCharm.

Stative answered 24/8, 2016 at 17:14 Comment(0)
F
7

I have experiment similar problem.

My solution was to commit with quiet option : git commit -q

Flatulent answered 1/9, 2016 at 15:1 Comment(1)
I was at first sceptical, but this truly works. Apparently git really just fails to generate something (i.e. the diffstat) which is only needed for display.Goatfish

© 2022 - 2024 — McMap. All rights reserved.