Git repos have lots of write protected files in the .git directory, sometimes hundreds, and the default rm my_project_managed_by_git will prompt before deleting each write protected file. So, to actually delete my project I have to do rm -rf my_project_managed_by_git.

Using rm -rf scares me. Is there a reasonable way to delete git repos without it?

  • Buttons@programming.devOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    5 months ago

    More like, I’m afraid of the command doing more than I’m trying to do.

    What I want to do is ignore prompts about write-protected files in the .git directory, what it does is ignore all prompts for all files.