how to delete a folder and its history github code example Example: git remove from folder rm -rf .git