[英]How do I unlink my computer from a github account?
I've been able to push with the mac GitHub app to a GitHub repo, but I'm trying to use the command line now and I see this error: 我已经能够将Mac GitHub应用程序推送到GitHub仓库,但我现在正在尝试使用命令行,我看到了这个错误:
remote: Permission to bfred-it/test.git denied to wildlifela.
wildlifela is a company account that I used recently on a different project, I think I only added my SSH key to that account. wildlifela是我最近在不同项目中使用的公司帐户,我想我只将SSH密钥添加到该帐户。
The problem is that even after removing my key from that account (wildlifela), my account (bfred-it), the RSA keys from my computer (with ssh-add -D
) and emptying the ~/.ssh folder, I still get that error. 问题是即使从我的帐户(wildlifela),我的帐户(bfred-it),我的计算机上的RSA密钥(使用
ssh-add -D
)删除我的密钥并清空〜/ .ssh文件夹,我仍然得到那个错误。
It doesn't seem to be a repo issue: I just created a repo on GitHub.com, cloned it to my desktop, created a commit and git push origin master
still produces that error. 它似乎不是一个回购问题:我刚刚在GitHub.com上创建了一个repo,克隆到了我的桌面,创建了一个提交,
git push origin master
仍然产生了这个错误。
After following the Generating SSH Keys procedure, ssh -T git@github.com
authenticates me as bfred-it, but I still can't push as bfred-it. 按照生成SSH密钥程序后,
ssh -T git@github.com
我认证为bfred-it,但我仍然不能像bfred那样推送它。
What can I do? 我能做什么? (OSX 10.9)
(OSX 10.9)
I worked around this issue by using a different version of git. 我通过使用不同版本的git 解决了这个问题。
Instead of using OS X's git I'm now using homebrew's git and it's working correctly. 而不是使用OS X的git我现在使用自制软件的git并且它正常工作。
If anyone has any insights as to what was happening, please share. 如果有人对发生的事情有任何见解,请分享。
although i removed the ssh keys and the git config files from the OS, it just won't let me clone/pull/push to repositories
虽然我从操作系统中删除了ssh密钥和git配置文件,但它不会让我克隆/拉/推送到存储库
As mentioned in the comment, it can depend on your version of Git and on your OS (Windows, Mac or Linux). 正如评论中所提到的,它可能取决于您的Git版本以及您的操作系统(Windows,Mac或Linux)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.