简体   繁体   English

如何在IntelliJ IDEA 2018.1 + Git Integration插件中通过GUI创建空提交?

[英]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)? 有没有办法在IntelliJ IDEA 2018.1中创建一个空提交(即没有实际更改)(使用带Git Integration插件的git)?

I'm looking for the equivalent of 我正在寻找相当于

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

but using GUI. 但使用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. 不,无法在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. 我问,因为可能有另一种方式来实现你想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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