I have a bare git repository set up on a production server, and it uses a post receive hook to deploy whatever I push there:
#!/bin/sh
GIT_WORK_TREE=/path/to/webroot git checkout -f
To deploy I do
git push production
From my work station, and everything is taken care of. But say I push a commit that breaks something and I want to revert asap. Will doing the following work:
git push production [id of commit to revert to]:master
IE will this still deploy everything in to the webroot correctly?