PhpStorm设置存储库在不支持HEAD的情况下在回购上提交 [英] PhpStorm Settings Repository Commit on repo without HEAD not supported

查看:208
本文介绍了PhpStorm设置存储库在不支持HEAD的情况下在回购上提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在GitHub上设置设置存储库.

I'm trying to setup a Settings Repository on GitHub.

创建新的GitHub帐户和新的存储库后,如果我在PhpStorm的设置存储库"对话框中输入存储库上游URL,则会收到以下错误消息:

After creating a new GitHub account and a new repository if I enter the repository upstream URL in the Settings Repository dialog of PhpStorm I receive this error message:

无法同步设置:当前不支持HEAD的回购上提交

Failed to Sync Settings: Commit on repo without HEAD currently not supported

我该如何解决?

推荐答案

这似乎是不同JetBrains IDE的设置存储库插件中的错误.一种可行的解决方法是删除IDE的config目录中的本地Git存储库:

This seems to be a bug in the Settings repository plugin of different JetBrains IDEs. A functioning workaround is to delete the local Git repository in the IDE's config directory:

${HOME}/.<IDE>/config/settingsRepository/repository

有关操作系统上IDE的确切目录名称,请访问此站点:

Please refer to this site for the exact directory name of your IDE on your operating system:

https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-插件和日志

解决方法已发布在JetBrains错误报告中(适用于IntelliJ IDEA):

The workaround was posted in the JetBrains bug report (for IntelliJ IDEA):

https://youtrack.jetbrains.com/issue/IDEA- 152002#comment = 27-2918113

这篇关于PhpStorm设置存储库在不支持HEAD的情况下在回购上提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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