how to remove a local repository in git code example Example: git remove repository local $ rm -rf .git