How do I remove version tracking from a project cloned from git?

后端 未结 10 1317
太阳男子
太阳男子 2020-11-28 00:00

I want to remove all version tracking from a project\'s directory.

What is the correct method to do this?

Can I do a shell command such as:

r         


        
10条回答
  •  感情败类
    2020-11-28 00:38

    From root folder run

    find . | grep .git
    

    Review the matches and confirm it only contains those files you want to delete and adjust to suit. Once satisfied, run

    find . | grep .git | xargs rm -rf

提交回复
热议问题