eliminate git repository code example Example 1: delete git rm -rf .git Example 2: clone and remove existing git repository git rm -rf git