Can't Remove File GH web Using: git rm (file name) or git rm --cached (file name)) #22829
-
I have gotten this message repeatedly and do not understand. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I assume |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Awesome, thank you, I was successful |
Beta Was this translation helpful? Give feedback.
-
You also can use "git rm -r --cached " which worked smoothly as well. |
Beta Was this translation helpful? Give feedback.
I assume
blog
is a directory? Git is telling you that it won’t remove a directory (and thus recursively all its content) unless you explicitly tell it to remove recursively. Either givegit rm
specific files, or if you really want to remove the directory and everything in it use the-r
flag.