I deleted all the global configuration by running
git config --global -e
(the -e
is for editing the global file) and deleted all the data in the file.
Then I ran my git command: git push origin my_branch
. This prompted me for my username and password. For the password, I generated a PAT and used it in place of the password.