gitgit-init

How can I fully delete a Git repository created with init?


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


Solution

  • Git keeps all of its files in the .git directory. Just remove that one and initialise again.

    If you can't find it, it's because it is hidden.