删除Git Hub相关文件

问题描述 投票:0回答:1

我正在学习Git Hub。所以我是新手。尝试删除项目目录中的git相关文件。我用了这行:

rd .git /S/Q

但是当我使用VS Code时,它给了我这个错误:

Remove-Item:找不到接受参数'/ q'的位置参数。在第1行:char:1+ rd / s / q .git+ ~~~~~~~~~~~~~~+ CategoryInfo:InvalidArgument:(:) [Remove-Item],ParameterBindingException+ FullyQualifiedErrorId:PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

并且当我使用CMD-命令promt时,出现此错误:

.git\refs\remotes - The directory is not empty.

我尝试过此行:

rd /s /q .git

并且它在命令提示符下起作用,但在VS Code中不起作用。

发生了什么。这是我获得有关此信息的地方:From stackoverflowFrom YouTube

我正在使用Windows 10 btw。

github-for-windows
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.