I\'m just entering into the wonderful world of git.
I have to submit a bunch of changes that I\'ve made on my program, located in a directory called /var/www/myapp
Maybe someone comes along having the same trouble like I had: In my case this error was thrown while using husky (commit hooks) https://github.com/typicode/husky
It was just an error because of encodings. My source was located in a directory that contains a special character ("ö")
Seems like husky uses "git add" with the absolute path of the source which fails somehow at this point
I renamed the path and it worked fine.