How to delete git to click "." The folder at the beginning?

vscode automatically generates a .vscode folder during debugging. I delete it with git rm .vscode , prompting fatal: pathspec ".vscode" did not match any files , not even with quotation marks. How can I delete this folder?

clipboard.png


The results of

git rm show that .vscode has not joined the git repository. You can directly call the operating system command to delete it, such as rm-rf .vscode under linux, del / S.vscode under windows.

however, the safe way is to exclude .vscode from the git repository, such as

echo .vscode >> .gitignore
Menu