how to remove git initalised to a directory code example Example 1: how to remove git from project rm -rf .git* Example 2: delete git repository command line rm -rf .git