我刚刚在Git中创建了一个新的仓库,并复制了仓库链接。
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
请帮我把这个问题一步一步地解释清楚
2条答案
按热度按时间ou6hu8tu1#
你说你复制了一个个人访问令牌。当使用个人访问令牌进行身份验证时,请确保令牌具有执行所需操作(在本例中,推送到存储库)所需的范围。
请仔细检查您复制的访问令牌是否正确以及是否具有必要的权限。附上图片供您参考
h4cxqtbf2#
试试这个方法: