I wonder have any of the regular Git users on the forum seen something like this before. I’ve built out an API along the lines of the recent MEAN Stack: Build an App with Angular 2+ and the Angular CLI article, and have then created a VueJS app within the same root folder at vue_src/ much in the same fashion as the article author has done (he used Angular 2+, but it shouldn’t matter).
What I’m having trouble with though, is that Git is not appearing to recognise changes in vue_src/, but does in the parent directory where git init was run from. VSCode is flagging up uncommitted changes though, but seems unable to use it’s built in Git integration to do anything about it.
I’ve gone through the .gitignore file at the root and can’t see anything that would cause this, though I do see that there is another .gitignore inside the vue_src/ directory - could that cause issue?
Edit: vue_src/ contains a .gitignore file, but no .git file in case anyone was wondering.
Seems I’ve lost something along the way. I just ran this command…
git submodule status
and got…
fatal: no submodule mapping found in .gitmodules for path ‘vue_src’
I just checked in the parent folder .git folder and sure enough, there’s no reference to a submodule in the config file. Next to make sense of this page - git-submodule
Edit: It would also be accurate to say that I can’t find a .gitmodules file anywhere either.
I got there in the end. Running the following cleared things up and got things back on track.
git rm --cached vue_src
That gave me a confirmation message on the rm, following which, running gst showed that I had untracked folder/files, from which point, I was able to stage and commit things again.