Skip to content

Can't Remove File GH web Using: git rm (file name) or git rm --cached (file name)) #22829

Discussion options

You must be logged in to vote

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 give git rm specific files, or if you really want to remove the directory and everything in it use the -r flag.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants