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

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

    All the data Git uses for information is stored in .git/, so removing it should work just fine. Of course, make sure that your working copy is in the exact state that you want it, because everything else will be lost. .git folder is hidden so make sure you turn on the Show hidden files, folders and disks option.

    From there, you can run git init to create a fresh repository.

提交回复
热议问题