remove git repo from a directory code example Example 1: remove git from project rm -rf .git* Example 2: git remove from folder rm -rf .git