I am trying to set up and use a GitHub personal access token.
I have followed https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token and have created the token.
I have looked at https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories#switching-remote-urls-from-ssh-to-https and I can https URLs returned when I run git remote -v
When I try and push I get a GitHub login prompt.
I close that and get an OpenSSH prompt.
I close that and type in my username and get another OpenSSH prompt for my password.
I close that and put in my personal access token and that still doesn't work.
According to the first link I should just be prompted for a username and token. Is there something else I need to do? I'm on Windows.
When I try on Linux (Ubuntu) I just a username and password prompt and the token works.