Git リポジトリ削除
ローカルリポジトリを削除する方法。
1. .gitを削除(Git 管理下から外れる)
2. ディレクトリを削除
または、
% rm -rf foo/で強制削除
詳細
.gitがあるディレクトリのこと
code:bash
$ ls -a hello-world/
. .. .git
# カレントディレクトリに .git がないというエラーになる
$ git rm -r hello-world/
fatal: not a git repository (or any of the parent directories): .git