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?
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.
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.
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> .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With