git command to remove directory from repository code example Example: git remove from folder rm -rf .git