简体   繁体   中英

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 (ie 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM