This doesn’t sound right.
In my experience you can run your git commands anywhere in the folder structure without any issues. The status command might show different paths, but this is only to show you what files are changed relative to your current working directory, but doesn’t have any effect on how the files are “saved” into git.
The behavior mentioned in the OP sounds like the situation where you have a nested git repository. Odds are you have a
.git folder in the “My Projects” folder, and a
.git folder in your “First Project”. Unless you want to have all your projects versioned controlled together (like a monorepo setup) odds are you don’t care about changes across all projects, you only care about changes on a project level.
Depending on what you want to do is up to you. If you don’t want to track changes across all the projects, just deleted the
.git folder in the My Projects folder, this will prevent any more tracking. Or you could just leave it and never use it again.
NOTE: On windows you might not see this file in the folder as it is a “hidden file”. So if you don’t see this folder in your My Projects folder, (or your “First Project” folder) make a quick google search to find out how to see them.