Simple Deployer recipe that checks for uncommited and unpushed changes in current release folder.
Task will throw RuntimeException
if finds any uncommited/unpushed data.
Just run check
task before new release creation
before('deploy:release', 'check');
or
before('deploy:release', 'check:uncommited');
before('deploy:release', 'check:unpushed');