Fixed: Issues with Git not recognising changes in part of an app

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.

What is inside your .gitignore? (the actual contents)

What happens when you run git status

The current git status is on the screenshot above - it’s clean, no changes. Unfortunately, I know categorically that’s not true.

The root .gitignore contains this…

# Logs

# Runtime data

# Directory for instrumented libs generated by jscoverage/JSCover

# Coverage directory used by tools like istanbul

# nyc test coverage

# Grunt intermediate storage (

# Bower dependency directory (

# node-waf configuration

# Compiled binary addons (

# Dependency directories

# Typescript v1 declaration files

# Optional npm cache directory

# Optional eslint cache

# Optional REPL history

# Output of 'npm pack'

# Yarn Integrity file

# dotenv environment variables file

#Mac OS files

and the vue_src/ .gitignore has this in it…


# Editor directories and files

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.

I found what I needed on this SO question - No submodule mapping found in .gitmodules for path

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.