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: unable to access ‘https://github.com/piyas33/browser_web_react.git/': The requested URL returned error: 403
To fix the error, follow the below steps:
- Your Profile Settings
2. Developer settings
3. Personal access tokens
4. Generate New Token
5. Write token name:
6. After Generate token,Copy this.
7. This token used as a password.
Important Note : To store the token git credential so that you don’t have to type token everytime, use this command before pushing.
git config credential.helper store
Permanently Save Token:
- Now, open the Git repository where you got the error and remove the current origin by running the following command.
git remote remove origin
2. Add the new origin by using the following command in your terminal.
git remote add origin https://<TOKEN>@github.com/<USERNAME>/<REPO>.gitExample:git remote add origin https://email@example.com/piyas33/blog_demo.git
That’s it, now you can push your code to GitHub using the
git push command without any errors.