GitHubDesktop权限问题解决办法

Desktop对于管理仓库非常方便、实用

很多人实用Desktop将仓库项目clone到本地

但是更新后同步时出现了如下权限错误:

Error

Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you're signed in with an account that has permission to access this repository.

 

网上给出了两种解决办法:

1.退出后重新登录

2.设置项目repository settings改为https的远程url地址

经过测试,发现这两种方式都没有起到作用

于是我猜测可能是用户名密码没有保存

github desktop目前版本不会提示输入用户名密码

于是设置了项目的repository settings

将remote repository设置成:https://注册名:密码@github.com/xmilt/xmilt.github.io.git

才能正常pull和push等操作。

 

(目前方式可能有本地泄露密码的风险,如果有更好的办法欢迎大家补充)

posted on 2018-09-21 10:30  xmilt  阅读(4082)  评论(0编辑  收藏  举报

导航