Pushing empty commits to remote

git, git-commit

Solution

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"

Problem

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??

Original source

Related problems