本文介绍了不能用GIT rm rm文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用GIT删除整个目录...每次我遇到相同的错误并且不明白为什么会发生这种情况时.
I want to remove an entire directory with GIT ... each time I keep getting the same error and don't understand why this is happening.
我要删除"blue_white"文件夹...
I want to remove the "blue_white" folder ...
├── css
│ ├── design.css
│ └── red_white.css
├── images
│ ├── blue_white
│ │ ├── accordion-button.png
│ │ ├── accordion-shadow.png
│ │ ├── button1.png
│ │ ├── oem-slide-shadow.png
│ │ └── truncate-arrow.png
│ └── red_white
│ ├── accordion-shadow.png
└── pages.xml
当我这样做时...
git rm -r blue_white/
我明白了...
fatal: pathspec 'f04/blue_white/' did not match any files
推荐答案
-
$ rm -r images/blue_white/
-
$ git rm -r images/blue_white/
-
$ git commit -m 'Remove images/blue_white directory'
$ rm -r images/blue_white/
$ git rm -r images/blue_white/
$ git commit -m 'Remove images/blue_white directory'
这篇关于不能用GIT rm rm文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!