The idea is to prevent deploying unpublished code from your local.
There is a git command that will return nonzero exit code if the working copy is dirty.
A much better approach would be to add something to Git so it deploys using so CI/CD system when merging to master. So actually forget this one.
The idea is to prevent deploying unpublished code from your local. There is a git command that will return nonzero exit code if the working copy is dirty.
A much better approach would be to add something to Git so it deploys using so CI/CD system when merging to master. So actually forget this one.