一些时候我们需要一个空的git提交来触发CI或webhooks。在git commit后加上--allow-empty可以实现这点。

git commit -m 'trigger build' --allow-empty