Git Post Receive Hook: update current working branch to staging server
问题 So, I have a staging server setup, and what I would like to do is when someone pushes to a non master branch update what the staging server's directory. My current post-receive hook looks like: echo "post hook is on the run!" while read oldrev newrev ref do echo "$ref" done unset $(git rev-parse --local-env-vars) cd ../staging/bikereport git fetch git pull origin $ref echo "Post receive finsihed" However I am not seeing the changes I would like on the server, and remote returns "Already up-to