PhpStorm Settings Repository Commit on repo without HEAD not supported

冷暖自知 提交于 2020-05-11 05:33:38

问题


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

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:

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

How I can solve this?


回答1:


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

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-plugins-and-logs

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

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



来源:https://stackoverflow.com/questions/48618774/phpstorm-settings-repository-commit-on-repo-without-head-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!