Git: create empty commit to trigger an action

Sometimes it’s necessary to trigger an action for CI/CD, e.g. when you use GitLab. To do this without any changes on the code base, you can create an empty commit. For this, git has a command:

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

Leave a Reply

Your email address will not be published. Required fields are marked *