Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm Settings Repository Commit on repo without HEAD not supported

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?

like image 240
fabio.ivona Avatar asked Feb 05 '18 08:02

fabio.ivona


People also ask

How do I commit in PhpStorm?

If you press Ctrl+K , the entire active changelist will be selected. You can also select files under the Unversioned Files node — PhpStorm will stage and commit these files in one step. If you want to append local changes to the latest commit instead of creating a separate commit, select the Amend option.

How do I push to someone else's repository?

Using the command lineGo into the directory for your project. Add a connection to your friend's version of the github repository, if you haven't already. Pull his/her changes. Push them back to your github repository.

How do I re push a commit?

If you want to revert the last commit just do git revert <unwanted commit hash> ; then you can push this new commit, which undid your previous commit. To fix the detached head do git checkout <current branch> .


1 Answers

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

like image 187
Igor Akkerman Avatar answered Oct 08 '22 01:10

Igor Akkerman