Illustrations for the article

Git: pre-push confirmation

Development

Are you using git push for deploying the project to production or staging (for example, on WP Engine)? If the answer is yes, you might find the following gist handy. It’s a pre-push hook that will prompt a confirmation y/n question before pushing to remote but origin.

Once, I’ve sent the staging version to the production and never more.

Leave a Reply

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