How to fully delete a git repository created with init?

前端 未结 13 1951
再見小時候
再見小時候 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:19

    If you want to delete all .git folders in a project use the following command:

    find . -type f | grep -i "\.git" | xargs rm
    

    This will also delete all the .git folders and .gitignore files from all subfolders

提交回复
热议问题