Trying to remove git repo on ubuntu guest

前端 未结 4 789
清酒与你
清酒与你 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:40

    The following command may help:

    chmod -R u+w folder/
    

    Also make sure you own all the files which you're trying to remove:

    chown -R $USER folder/
    

    On Linux it may be also a file attribute (check by lsattr):

    chattr -R -AacdDijsStu folder/
    

提交回复
热议问题