when I work on other projects not in git, in a terminal of vs code that git folder is running so if use terminal for other projects, changes are done on that git folder.
These changes should not be done in that Git folder.
Unless the other projects are in subfolders below the Git repository root folder.
If you make sure to use other projects in folders which are not subfolders of an existing Git repository, then no Git change will be recorded, and you can keep using VSCode for those other projects without influencing your existing Git repository.