GitHub no longer accepts password authentication and now uses what's called a Personal Access Token.
This is a token that you generate on GitHub that is tied to your account. Then when you do operations like cloning and pushing, Git will use that token for authentication instead of using a password.
So, first you need to generate a Personal Access Token in your GitHub account.
Here's the steps to do that:
- Go to the Developer settings section of your GitHub account.
- Open the Personal access tokens page.
- Click the Generate new token button.
- Give your token a label to help you remember what its for and add an expiration date.
- Select your preferred scopes.
- Generate the token.
- Copy the token and save it in a secure location on your machine.
Clone your repository again and use your Personal Access Token when prompted.
Everything should go smoothly now.
Git should cache your personal access token so you shouldn't have to re-enter it going forward (until it expires).