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

后端 未结 10 1332
太阳男子
太阳男子 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:46

    You can also remove all the git related stuff using one command. The .gitignore file will also be deleted with this one.

    rm -rf .git*
    

提交回复
热议问题