How to fully delete a git repository created with init?

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

    If you really want to remove all of the repository, leaving only the working directory then it should be as simple as this.

    rm -rf .git
    

    The usual provisos about rm -rf apply. Make sure you have an up to date backup and are absolutely sure that you're in the right place before running the command. etc., etc.

    0 讨论(0)
提交回复
热议问题