mac delete .git folder code example Example: how to delete git repo locally $ rm -rf .git to delete git repository from local repo (from machine)