Pushing onto github using ubuntu on windows and get error prompt telling me my login credentials are wrong when they aren’t

this is the code i entered into the ubuntu terminal to push onto my github project:

“git init
git add .
git commit -m “first commit”
git branch -M main
git remote add origin https://github.com/nessed/lmc-website1.git
git push -u origin main”

however, when the github login prompt comes up, the terminal gives me this error message:

‘Logon failed, use ctrl+c to cancel basic credential prompt.’

Changing my password did not fix the problem. Git is also updated to the latest version. What am i doing wrong?