yourFriend
How to stop git from tracking all a folder(.vscode) and everything inside it.
Git is init in root say
RootFolder
which contain multiple projects say P1
, P2
and so on and each project folder has .vscode
folder.
I have tried this from RootFolder
git rm --cached -r .vscode/
But it says
fatal: pathspec '.vscode/' did not match any files
However it works from parent folders i.e. P1
, P2
, etc. And I have got hundreds of them.5 replies