remote: Permission to XXX/.git denied to YYY. fatal: unable to access 'https://github.com/XXX//': Th

I think previously I used this command and entered my user and pass of the YYY user, but now I want to do it for another XXX user, but I get this error message:

remote: Permission to XXX/coursera-test.git denied to YYY.
fatal: unable to access ‘https://github.com/XXX/coursera-test/’: The requested URL returned error: 403

How can I enter a new username and password?
I use WindowsPowerShell on Windows 10.

Give SSH a try. It’s better than using passwords. https://help.github.com/en/articles/connecting-to-github-with-ssh