DEV Community

Discussion on: How to Quickly Remove A Committed File From Git Version Control

Collapse
 
erikburdett profile image
Erik Burdett • Edited

Hi Brandon - thank you for this article. I have a question about what I'm seeing when I see this: "fatal: not removing './coverage' recursively without -r"

Collapse
 
khatastrov profile image
Khatastrov

Hi Erik !
I may be wrong here, but it looks like it says ./coverage is a folder containing one or more elements, and thus, you need to provide the -r option, for recursive maybe ?, so that Git shall delete the folder with any elements in it... 🤔
Hope that helps ! Have a nice weekend ✌
(PS: I'm not a native english speaker, but I'm doing my best. Don't hesistate to tell me if I'm not extra clear... 🥴)

Collapse
 
erikburdett profile image
Erik Burdett

That's exactly what was going on. :) Thank you! (Your english is great by the way! :) )