How to fully delete a git repository created with init?

前端 未结 13 1920
再見小時候
再見小時候 2020-11-22 16:42

I created a git repository with git init. I\'d like to delete it entirely and init a new one.

13条回答
  •  迷失自我
    2020-11-22 17:30

    Windows cmd prompt: (You could try the below command directly in windows cmd if you are not comfortable with grep, rm -rf, find, xargs etc., commands in git bash )

    Delete .git recursively inside the project folder by the following command in cmd:

    FOR /F "tokens=*" %G IN ('DIR /B /AD /S .git') DO RMDIR /S /Q "%G"

提交回复
热议问题