remove folder from terminal by using git bash code example Example: how to remove git directory in terminal rm -rf .git