Trying to remove git repo on ubuntu guest

前端 未结 4 790
清酒与你
清酒与你 2021-02-08 02:53

I am trying to remove whole git repository from my local machine, but git prohibits to delete several files.

I\'ve tried:

  1. rm -r folder
4条回答
  •  被撕碎了的回忆
    2021-02-08 03:43

    In my case, for some reason the user immutable flag (uchg) was switched on for everything in the .git folder. This fixed it:

    chflags -R nouchg folder/
    

    I could then delete with rm -rf folder/.

提交回复
热议问题