It seems that you are using git cmd, and git cmd does not have rm命令,你可以使用cmd中的删除命令,如del、rd等。如果要使用rm命令,建议使用git bash。 另外,有一点我需要说明的是,如果要删除已跟踪的文件,即从暂存区移除,最好使用git rm file. In this case, the deleted files will not appear in the untracked file list in the future.
It seems that you are using git cmd, and git cmd does not have
rm
命令,你可以使用cmd中的删除命令,如del
、rd
等。如果要使用rm
命令,建议使用git bash。另外,有一点我需要说明的是,如果要删除已跟踪的文件,即从暂存区移除,最好使用
git rm file
. In this case, the deleted files will not appear in the untracked file list in the future.cmd is not there
You can consider using git bash which has this command
Please read
git
’s prompt content carefully:The command should be:
git rm myFile
You can also
, you need to distinguish betweengit help
to view more commands; or directlygit help
查看更多的命令;或者直接git
即可.一般在win下面使用
git
, 需要区分git命令
和linux命令
.Generally used under win
git command
andlinux command
.🎜Use powershell and come with rm
(Remove-Item)