so I am trying to do my initial commit (a small .gitignore file, and an empty .h file and an empty .cpp file, basically an extremely small commit). I have tried a lot. I thought it might be a problem with IPv4 versus IPv6 per this stack overflow discussion: Git pull is very slow... Why?.
I tried to push using ipv4.
$ git push --ipv4 -u -v origin main
Pushing to https://github.com/brian-campbell-said-mba18/leetcode-valid-palindrome-ii.git
It always fails to push to the remote repo in github.
Also for reference here are some of my git config -global settings (I'm not going to show some of the personal info for obvious reasons)
$ git config --global --list
user.name= NOT-GIVEN
user.email=NOT-GIVEN
core.editor=code --wait
credential.helper=wincred
protocl.version=2
So visual studio code is my default IDE. I also tried fiddling around with credential.helper and changing the protocol to version 2 (per some advice from other stack overflow solutions).
I've been using git and github consistently for about two years now and have never encountered anything like this. It's strange.
Also, I recently installed ubuntu 20.04 and Windows Subsytem for Linux (so I could use Docker). Could these installations have anything to do with this?
Thank you in advance for anyone who can help!!!!!!!!!!!!!
PS. I tried another experiment. I took a repo that I successfully pushed to github a month ago and tried to clone it in an empty local directory, and I had the same problem.