我想要从Git中删除~/bin/下的所有文件。
我执行以下命令:
我执行以下命令:
git rm -r --cached ~/.vim/* # Thanks to Pate in finding --cached!
我得到
fatal: pathspec '.vim/colors' did not match any files
这个错误信息建议我使用以下路径,因为~/.vim/**不起作用
~/.vim/* # I get the error
~/.vim/*/*/* # This removes files from the index at ~/.vim/folderA/folderB/file1.txt
~/.vim/*/* # similar error as to the first PATH
如何从 Git 中删除 ~/.vim 目录下的所有文件和子目录?