[英]how can i delete a file or folder on github?
I created a folder by mistake in name of it, and now I want to delete this folder or the file that is inside the folder.我错误地创建了一个文件夹名称,现在我想删除这个文件夹或文件夹内的文件。 When I go to relevant folder and try this command
git rm -r Data Development
(Data Development is the name of my folder), I faced with this error:当我 go 到相关文件夹并尝试此命令
git rm -r Data Development
(Data Development 是我的文件夹的名称)时,我遇到了这个错误:
fatal: pathspec 'data' did not match any files
How can I delete this folder?如何删除此文件夹?
It takes Data
and Development
as two different command-line arguments.它将
Data
和Development
作为两个不同的命令行 arguments。 Quote it to make it one.引用它以使其成为一个。
git rm -r "Data Development"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.