How can I undo this command
git config --global --add url."git@github.com:".insteadOf "https://github.com/"
More precisely, for that specific key, using git config --unset
git config --global --unset url."git@github.com:".insteadOf
url."git@github.com:".insteadOf
is the key to unset.