I just created a new repo in Git and copied the repository link.
1. came to ubuntu terminal generated clone by using command "git clone repo-link"
2. git init
3. mkdir Jesse ,new file created
4. cd Jesse
5. git init
6. git remote add origin repo-link,2nd point link
7. touch index.html
8. git add index.html
9. git commit -m "new HTML file added"
10. git push -u origin master
11. username: entered password: I copied my personal access token, then I have these error
Username for 'https://github.com': Hemanthkumar
Password for 'https://[email protected]':
remote: Permission to Hemanthrapata/Everest.git denied to Hemanthrapata.
fatal: unable to access 'https://github.com/Hemanthrapata/Everest.git/': The requested URL returned error: 403
Please help me to sort out this problem step-by-step explanation
2
Answers
Try this way :
You mentioned that you copied a personal access token. When using a personal access token for authentication, make sure that the token has the necessary scopes to perform the actions you want (in this case, pushing to the repository).
Double-check if the access token that you have copied is correct and has necessary permissions. Attached image for your reference