Github Mac权限问题 [英] Github Mac Permission Issue

查看:358
本文介绍了Github Mac权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最新的Github for Mac作为新的Git用户。当我尝试同步一个回购(我首先克隆,然后创建一个新的分支,提交更改,然后与主合并),我得到了错误:

 身份验证失败。 

您可能没有权限访问repo111。检查首选项以确保您仍然登录。

我搜索了类似的问题,但答案似乎将SSH密钥添加到github,所以我遵循: https://help.github.com/articles/generating -sh-keys



当我做 ssh -T git@github.com 时,我得到:

 嗨User111!您已成功通过身份验证,但GitHub不提供shell访问权限。 

我以正确的用户身份登录,并且拥有回购权,所以我不知道为什么我没有通过身份验证?

解决方案

可能是因为您输入的密码不正确,并且存储在钥匙串中。

对于我的情况,我使用GitHub for Mac与BitBucket存储库一起工作。长话短说,我错误地输入了我的BitBucket密码,并且Mac的GitHub无法进行身份验证(因为存储在我的钥匙串中的密码错误)。



感谢 GitHub的帮助人员,当我寻求帮助时,他们很快回应:


打开 Keychain Access.app (在 / Applications / Utilities 中)并搜索GitHub对于Mac。应该有一个像GitHub for Mac - bitbucket.com的条目。删除该条目







如果使用GitHub for Mac管理BitBucket回购



如果您看到以下内容:



...那么你可能有一个 BitBucket 钥匙串/密码问题。 / p>

打开钥匙串Access.app (在 / Applications / Utilities )并搜索 bitbucket



右键点击该条目并获取信息:




点击访问控制以确认它确实是Mac BitBucket密码/登录钥匙串项目的GitHub:



/ p>

与其删除钥匙串条目/项目,我只是编辑了我的密码:



您现在应该可以使用GitHub for Mac认证失败。 :)

I'm using the latest Github for Mac as a new Git user. When I try to sync a repo (that I first cloned, then created a new branch, commited changes, and then merged with master), I got the error:

Authentication Failed.

You may not have permission to access repo111. Check Preferences to make sure you’re still logged in.

I searched for similar questions, but the answer seemed to be add SSH keys to github, so I followed: https://help.github.com/articles/generating-ssh-keys.

When I do ssh -T git@github.com, I get:

Hi User111! You've successfully authenticated, but GitHub does not provide shell access.

I'm logged in as the correct user, and have rights to the repo, so I'm not sure why I'm not authenticated?

解决方案

It could be that you entered a password incorrectly and it's stored in your keychain.

For my situation, I was using GitHub for Mac to work with a BitBucket repository. Long story short, I mistyped my BitBucket password and GitHub for Mac could not authenticate (because the password stored in my keychain was wrong).

Thanks to the helpful folks at GitHub, they quickly responded when I asked for help:

Open Keychain Access.app (in /Applications/Utilities) and search for "GitHub for Mac." There should be an entry like "GitHub for Mac — bitbucket.com". Delete that entry


Steps to fix if using GitHub for Mac to manage a BitBucket repo

If you see this:

… then you might have a BitBucket keychain/password problem.

Open Keychain Access.app (in /Applications/Utilities) and search for bitbucket:

Right-click on the entry and get info:

Click on "Access Control" to confirm that it's truly the GitHub for Mac BitBucket password/login keychain item:

Rather than deleting the keychain entry/item, I just edited my password:

You should now be able to use GitHub for Mac without authentication failures. :)

这篇关于Github Mac权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆