I created a git repository with git init. I\'d like to delete it entirely and init a new one.
You can create an alias for it. I am using ZSH shell with Oh-my-Zsh and here is an handy alias:
# delete and re-init git
# usage: just type 'gdelinit' in a local repository
alias gdelinit="trash .git && git init"
I am using Trash to trash the .git folder since using rm is really dangerous:
trash .git
Then I am re-initializing the git repo:
git init