gitintellij-ideaintellij-idea-2018

How to create an empty commit via GUI in IntelliJ IDEA 2018.1 + Git Integration plugin?


Is there a way to create an empty commit (i.e. no actual changes) in IntelliJ IDEA 2018.1 (using git with the Git Integration plugin)?

I'm looking for the equivalent of

git commit --allow-empty -m "foo"

but using GUI.

Trying to commit an empty changelist simply yields a "No changes detected" error message.


Solution

  • No, there is no way to create an empty commit in IntelliJ GUI. To commit, one needs to have some changes in the project.

    What is the usecase, btw? Why do you need an empty commit? I am asking because there could be another way to achieve what you want.