One of the most common scenarios with modern software development is the use of https://en.wikipedia.org/wiki/CI/CD. Now, if for some reason the deployment doesn’t get triggered or you just want to re-trigger the deployment, the obvious thing you would do is to do some random change in any file of your Git repository, commit it, and push it onto the branch on the remote.

This is fine and works but you would end up modifying files unnecessarily which in my opinion is not cool.

But there’s an option called --allow-empty that you can use with git commit which lets you perform an empty commit.

And that’s how you can push an empty commit and trigger the deployments which are tied to this action.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners