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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners