how to remove a .git init file code example Example 1: how to remove git from project rm -rf .git* Example 2: ubuntu remove git from folder rm -rf .git