Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Any reason why git submodules in Visual Studio 2017 just don't want to checkin? I keep getting

fatal: unexpected sequence in commit output

Seems like sometimes they DO checkin, but most of the time they don't. Am I misunderstanding something?

enter image description here

like image 360
Robert4Real Avatar asked Apr 26 '18 22:04

Robert4Real


People also ask

Why does git pull--recurse-submodules fail when using SuperProject?

In that case, it is possible for git pull --recurse-submodules, or git submodule update, to fail if the superproject references a submodule commit that is not found in the submodule remote locally configured in your repository. In order to remedy this situation, the git submodule sync command is required:

How do I see changes in a submodule in Git?

By default, the git pull command recursively fetches submodules changes, as we can see in the output of the first command above. However, it does not update the submodules. This is shown by the output of the git status command, which shows the submodule is “modified”, and has “new commits”.

What is the use of--Recurse-submodules in Git checkout?

Using the --recurse-submodules flag of git checkout can also be useful when you work on several branches in the superproject, each having your submodule pointing at different commits.

How does Git handle merge commits in submodule projects?

Interestingly, there is another case that Git handles. If a merge commit exists in the submodule directory that contains both commits in its history, Git will suggest it to you as a possible solution. It sees that at some point in the submodule project, someone merged branches containing these two commits, so maybe you’ll want that one.


1 Answers

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"

like image 73
jhhwilliams Avatar answered Oct 11 '22 19:10

jhhwilliams