phpstorm使用Setting Repository报错Authentication failed

phpstormSetting Repository对于在不同的终端上同步设置是很好用的功能,使用中有遇到问题。

关于Setting Repository的官方说明参考:

  1. Share settings through a settings repository
  2. Settings Repository

我们一般会在setting->Version Control->Github这里token以及git设置好就可以正常使用github上的仓库;

但奇怪的是在上传和同步Setting Repository的时候当你使用SSH地址来做的时候,会提示Authentication failed,当使用https地址的时候依然会要求你输入token这时候你就需要在同步成功后,再把刚才Version Control更新一下这里的token

日志里的报错信息:

Auth fail 
org.jetbrains.settingsRepository.AuthenticationException: git@github.com:hsu1943/phpstorm_setting.git: Auth fail

总结起来的步骤:

  1. github创建新项目用来存Setting Repository
  2. githubSetting->Developer settings->Personal access tokens这里获取一个token
  3. phpstormsetting->Setting Repository中填入github项目地址,需要用户名密码,然后再填入前一步使用的token;就可以上传和同步配置了。
  4. 将这个token使用到setting->Version Control->Github中。
phpstorm使用Setting Repository报错Authentication failed

原文链接:https://beltxman.com/2244.html,若无特殊说明本站内容为 行星带 原创,未经同意禁止转载。

phpstorm使用Setting Repository报错Authentication failed”上有 2 条评论;

评论已关闭。

Scroll to top