git如何处理带空格的文件夹名称 [英] How git deals with folder names with spaces

查看:334
本文介绍了git如何处理带空格的文件夹名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为31 Files of - oop的文件夹.当我尝试运行此命令时:

I have a folder by the name 31 Files of - oop. When I try running this command:

git rm -rf 31个文件-oop

git rm -rf 31 Files of - oop

我收到此致命错误:

致命:pathspec'31'与任何文件都不匹配

fatal: pathspec '31' did not match any files

我该如何准备要在git中使用空格的文件夹名称?.

How do I need to prepare the folder names with spaces for use in git?.

推荐答案

以这种方式尝试:

git rm -rf "31 Files of - oop"其中-oop的31个文件是您的文件名.

git rm -rf "31 Files of - oop" Where 31 Files of - oop is your file name.

这篇关于git如何处理带空格的文件夹名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆