remote: Permission to myUsername/MyProject.git denied to Dwannnn.
fatal: unable to access 'https://github.com/joshuakimDwan/MyProject.git/': The requested URL returned error: 403
我在终端中遇到了这个错误。
我的步骤是:
1. GIT中的init
2. git的远程添加原点https://github.com/myUsername/MyProject.git
3. GIT中添加README.md
4. git的承诺-m “第一次提交”
(误差)5 。git push -u原点大师
当git push时,我得到了那个错误。这意味着'Dwannnn'不能被允许。但是,在〜/ .gitconfig中,我的用户名不是'Dwannnn'。我不知道名字是什么。
在我的猜测中,当我使用Sourcetree练习Git时,我使用了名为'Dwannnn'的帐号。所以,我删除了Sourcetree的帐号,网络数据。但是,它不起作用。
综上所述, 我把我的Github上的用户名和USEREMAIL我的.gitconfig文件,但我得到的消息,我也不允许有,我不知道(我只是猜测)帐户
访问我该如何解决这个问题?
非常感谢
你有项目本身的'git的/ config'文件检查覆盖? – merlin2011
@ merlin2011是的,我第二次检查它。但是,没有问题...... –
我怀疑Sourcetree可能已经为您添加了缓存的凭据。 git config --global credential.helper的输出是什么? – merlin2011