Pushing empty commits to remote


I have pushed one commit to remote but now I realized that the commit message is not correct. I would like to change the commit message but AFAIK it is not possible. So i decided to create empty commit with correct message:

git commit --allow-empty

Are there any disadvantages/consequences of pushing empty commits? Is there any problem I might face in future because of this empty commit??


One use of an empty commit would be to force a build to occur in an environment where builds are triggered whenever new commits are pushed.

git commit --allow-empty -m "Trigger Build"

How to un-submodule a Git submodule?

How to grep commits based on a certain string?