MaxG
MaxG

Reputation: 227

Not all projects in work space register changes in GIT

I have a work space with 20 projects; any changes made to code are visible in the GIT sidebar with an 'M'. However, changes made to code in three project folders at the bottom of the work space (but included in the work space) do not show an 'M' and seem to be excluded from GIT version control.

Any hints on how to fix this?

[edit 1] I am new to GIT (and VSCode); I have started a few projects on a dedicated drive D: on Windows 10, before I moved to Linux Mint a few months ago. I went through the projects (on Linux) to make sure I have all required libraries, and all code compiles. The project work space sits on that (shared) D: drive, also accessible in Linux; I added the the three projects on Linux (but opened that workspace created under Windows). The three projects (not 'managed/noted' by Git) are listed in that work space.

So...

git check-ignore

resulted in this:

fatal: Not a git repository (or any parent up to mount point /media/maxg/Data SSD)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

... which sort of seems to imply to me, there is a related Git directory, which may have been created under my Windows user account; which is not reflected in /home/maxg/.git I did a git init, which created the .git directory, but there is nothing (project related) in it.

However, this being the case, why are the 20 odd projects monitored and the three new ones are not?

Upvotes: 0

Views: 92

Answers (1)

MaxG
MaxG

Reputation: 227

Solution

I figured it out... I used the terminal in VSCode and did a

git init

in each of these three project folders; this marked the folders green, as in 'U'pdated... and they are now part of the fold :)

Upvotes: 0

Related Questions