0


github desktop同步报错 登录身份过期/失效问题

一、报错
Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.

二、解决办法

一般出现这个问题就是表示你的登录身份验证失败(身份过期/仓库的登录账号密码改了)。

出现这个提示之前,你提交的时候他会让你输入登录账号密码。如果你输入的账号密码是错的,再提交的时候他就会有上面这个身份验证失败的警告。

1、如果你是github的仓库:

先点击【File】->【Options】

再选择登录方式:个人账号登录点上门这个GitHub.com。企业账号登录点下面的GitHub Enterprise。

点击登录以后按照指引会打开浏览器让你等了。登录过后浏览器又会有弹窗提示授权打开github Desktop客户端。授权打开就行。

这样计算登录成功了。你再点击同步就可以正常提交了。

2、如果你是gitee(码云)仓库

打开电脑的【控制面板】

点击【管理你的凭证】

点击【Windows凭据】,把你github desktop登录的凭据信息删掉。如果不知道是哪条,可以看日期“修改时间:今天”的删掉。

然后重新打开客户端点击同步。再需要你输入账号密码的时候输入正确的账号密码就行了。

三、修改仓库地址

如果都不行可以检查一下你的仓库地址是不是改了。复制新的仓库地址。

然后点击【Repository settings】

把复制的地址粘贴进去保存就行了。

标签: github

本文转载自: https://blog.csdn.net/nanren_nanren/article/details/139476084
版权归原作者 张三丰_007 所有, 如有侵权,请联系我们删除。

“github desktop同步报错 登录身份过期/失效问题”的评论:

还没有评论