I have years (lots) of computer experience, and I was frustrated as well!
The earlier versions of the desktop app were not as good as the more current ones. I still use CLI for some things, like I work with others so I often have my fork (origin) and work to get things into the “Upstream” fork where I keep the main/master branch clean and in sync with upstream…
They have also improved the desktop to allow more options, like I mostly use sublime text for editing and they now have settings to allow that…
Other things I have mentioned like: PuTTy (and KiTTy) and WinSCP are things I use when I am playing with things like Rasberry Pi boards (or Odroid or UP or …)
again if it were me (and it was), the things I would check include:
- What version of git are you running? I am running:
git version 2.33.0.windows.1
If yours is not reasonably recent, I would probably upgrade to a later one:
Looks like they released one today.
try opening the Credential manager (I start type credential in the windows search box , click on the Windows Credentials tab and look for anything that mentions github … and probably delete
again check your root directory in my case: c:\users\kurte
and look for directory: .ssh - and check to see if there is a hosts file that mentions github… Delete…
likewise look for file: _netrc in your root directory and delete…
I also deleted my .gitconfig file in that directory as well…
There may be a few other places to look as well, like under your root directory: appdata
there may be locations under local or remote that cache some of this data as well…
But then hopefully the install of the current release of GIT will give you some hints.
For example the install may ask you which ssh to use normal or the putty one if that is installed…
But finally after I removed all of the things that told the system what the user/password was for github, when I finally reinstalled git (probably 4th time) and then I probably did something like:
git config --global user.name kurte
git config --blobal user.email
and then finally git push - The system finally came up with a prompt asking me if I wanted to enter a password (credential) or use the web browser to authenticate… and then everything worked