git could not remove code example Example 1: remove git rm -rf .git Example 2: remove git credentials terminal git config --unset credential.helper