Git commit “fatal: unable to generate diffstat”

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.

  • git hook post-update doesn't do server-update-info
  • what does cvs2git need from a CVS repository?
  • How to do git merge/pull correctly: You have not concluded your merge (MERGE_HEAD exists)
  • How to clone a list of GIT repositories?
  • Finding merge commits from tag across branches in git
  • How to list all files and their commit SHAs in a repo
  • I also cannot run a standard diff on that file from the command line, but I can from within PyCharm.

  • Does JGit support Git Credentials?
  • error: library dfftpack has Fortran sources but no Fortran compiler
  • Erlang git repository dependency from github (undef)
  • Why does 'git status' run filters?
  • How do I place my entire WordPress installation under git control?
  • git push is not using the correct git configuration values
  • One Solution collect form web for “Git commit “fatal: unable to generate diffstat””

    I have experiment similar problem.

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

    Git Baby is a git and github fan, let's start git clone.