【发布时间】:2017-11-11 23:36:03
【问题描述】:
我有两个具有两个不同电子邮件 ID 的 GitHub 帐户,
目前,我的.gitconfig如下;
[filter "lfs"]
process = git-lfs filter-process
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[user]
name = joshinachiket
email = nachiket.r.joshi@gmail.com
[core]
autocrlf = true
excludesfile = C:\\Users\\NACHIKET\\Documents\\gitignore_global.txt
不过,当我想提交到存储库时,它会说,
remote: Permission to joshinachiket/CMPE295-enterprise-grade-botman.git denied to TheBloodMage.
fatal: unable to access 'https://github.com/joshinachiket/CMPE295-enterprise-grade-botman.git/': The requested URL returned error: 403
TheBloodMage 是我在其他 github 电子邮件 ID 中的用户 ID。
我在问题中显示的 .gitconfig 内容是我创建存储库的帐户,ID TheBloodMage 是我不使用的其他 github 帐户(我的旧帐户)想要访问。
所以基本上,
我用 github id 创建了一个存储库 - joshinachiket
我在计算机上克隆了存储库,其中 .gitconfig 显示相同的 ID 和电子邮件,如上所示
不过,错误提示 TheBloodMage 无权访问存储库。
我被这个问题困扰了很长时间...... 谁能告诉我我做错了什么?
【问题讨论】:
标签: git github ssh github-for-windows