I have an existing GitHub account. I am working in bash shell and Visual Studio code on a MacBook Air. I made a new Directory in bash and added two files (a README.md and script.js) as I am learning Javascript and creating a random message generator application. I did a 'git init' to initialize the local repository, then went to GitHub to make a (new) remote repository. GitHub is asking for my password, even though now passwords are deprecated and they are now requiring a long token. But when I enter my token I get:
Jeanines-Air:message_generator jeanineloughlin$ git push -u origin main
Password for 'https://github-jalcoding8@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github-jalcoding8@github.com/github-jalcoding8/github-message_generator.git/'
At first I was asked to enter both username/password. Now it's just password. Prior to the change from password to token, I was never asked to enter my username/password. Can someone suggest a solution. Should I use the cache option in GitHub?