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?
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?
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