error: a NUL byte in commit log message not allowed [migrated]
- by James
I'm trying to commit some files in my Git repository, and I'm receiving this error.
This all started when I ran git rm -rf folder and git rm -rf file and tried to commit the changes. I've since been able to commit and push without these files being deleted from my remote repository, however I'm now completely stuck.
The full error is:
error: a NUL byte in commit log message not allowed.
fatal: failed to write commit object
What can I do to fix this? My Google-fu has let me down on this one.
Edit:
I've just checked out these deleted files, and attempted to commit again, but it's still giving me the same error. Has my Git repo been corrupted or something?