Visual Studio Code (Vscode) Git Treats A Folder Like It Is A File
Look for .git folders
It often happens if you copy and paste folders and files into an existing repository.
Most likely the cause is the presence of a
.git folder in one of the sub-folders of your repository.
Removing the unwanted
.git folder should resolve the problem.