简体   繁体   English

如何取消我的计算机与github帐户的链接?

[英]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配置文件,但它不会让我克隆/拉/推送到存储库

  1. Check that the repo is indeed owned by you (for pushing to it) 检查回购确实是由你拥有的(推送到它)
  2. There always is the option of using https url (with GitHub username/password) 总是可以选择使用https url(使用GitHub用户名/密码)
  3. removing the ssh key might not be enough, you also have the ~/.ssh/config file. 删除ssh密钥可能还不够,还有〜/ .ssh / config文件。

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.

相关问题 如何在我的计算机的终端中重置github设置(切换github配置文件) - How do I reset the github settings in the terminal for my computer (switching github profiles) 如何删除我的终端/计算机上的两个 GitHub 帐户之一? - How do I remove one of two GitHub accounts on my terminal/computer? 如何在python中睡眠我的电脑? - How do I sleep my computer from within python? 如何从URL下载图像并将其保存到计算机中? - How do I download an image from a URL and save it to my computer? 我如何查看我的计算机当前命中的网址? - how do i see the url my computer is currently hitting? 为什么我需要从我的电脑上卸载 node 才能使用 nvm? - Why do I need to uninstall node from my computer to use nvm? GitHub 认为我是第一个帐户,尽管使用了第二个帐户的密钥 - GitHub thinks I am first account despite using key from second account 如何将存储库推送到计算机和在线服务器? - How can I push a repository to my computer and my online server? 如何为 Github 帐户和 Bitbucket 公司帐户添加多个 SSH 密钥 - How can I add multiple SSH keys for a Github account and a Bitbucket corporate account 如何在终端中删除github帐户 - How to delete a github account in terminal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM