I\'m trying out git at the moment, and am trying to create a workflow so that a push to a bare remote repo on the server will update 2 different sites based on different bra
I ended up doing
#!/bin/sh GIT_WORK_TREE=/www/development/ git checkout -f master GIT_WORK_TREE=/www/development/ git clean -fdx GIT_WORK_TREE=/www/production/ git checkout -f production GIT_WORK_TREE=/www/production/ git clean -fdx
based off @Koraktor 's answer.