I am trying to commit some files in my Git repository and I am getting this error.
It all started when I ran git rm -rf folderand git rm -rf fileand tried to commit the changes. Since then, I was able to commit and click without deleting these files from my remote repository, but now I'm completely stuck.
Full error:
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 foo let me down on this.
Edit:
I just checked these deleted files and tried to commit again, but still gave me the same error. Was my Git repository damaged or something else?
James source
share