First commit and stumbling over password

Where do I start?

Being trying for days to try and commit a project to a repository using a Mac. However, let’s start with the easy one. When I try to

git push -u origin main

it asks for user name and password. I enter them (even reset the password so I know I’m using the right one) and it is saying invalid username and password.

Which password combo should I use?

And why is this soooo hard??


Have a read through this thread which will help with some common problems, including setup and use of PAT, same principals apply for MAC also.