submodules git visual studio "fatal: unexpected sequence in commit output" can they just checkin?

In my case the problem was that not all the files had been saved when trying to commit.

This showed me where to look.

"I got this exception when the file with changes I was attempting to commit was not saved"


With assistance from the main answer. The submodule change was the only change that required committing, and attempting to commit produced the error.

Making an additional minor change in a any project file, such as removing an empty line, following by a 'Commit All' on the 2 changes, solved the problem.


I was facing the same problem and the reason was that submodule was opened in VS code and I made some changes in VS code editor which was uncommitted. committing those changes in VS code solved my problem.

In my case, submodule was an Angular 8 project that I was integrating in a solution with many existing projects.