getting “fatal: not a git repository: '.'” when using post-update hook to execute 'git pull' on another repo
I'm new to git so I apologize (and please correct me) if I misuse terminology here, but I'll do my best. I'm trying to set up a bare git repo (hub) and a development site working copy (prime) on a web server. I've tried to pattern it after this article . I want the development working copy to be updated whenever the hub repo is pushed to. I'm under the impression that the proper hook for this is post-update , which I have created like so: #!/bin/sh whoami cd /path/to/working-copy/ RET=`git pull` echo $RET Update When I push changes from my local repo to the bare hub I get the following output