On Fri, 2009-20-02 at 14:20 -0600, Jared Johnson wrote: > Does git support 'hooks' like SVN does?
Yes and they are trivial to implement ... I found SVN to be a PITA -- partly why I switched. Different hooks are documented in different git man pages, iirc, so you need to read more than one page. You need the right ssh keys and permissions set up for the following to work. For example, I have a repo on my workstation and I can use it to push updates to both my server and my customer's server via: Working Copy: APP/.git/hooks/post-commit #!/bin/sh git push /LOCAL/APP.git git push --tags /LOCAL/APP.git Local Copy: /LOCAL/APP.git/hooks/post-receive #!/bin/sh CUSTOMER=CHOST:/CPATH/APP.git SERVER=SHOST:/SPATH/APP.git git push $CUSTOMER git push $SERVER git push --tags $CUSTOMER git push --tags $SERVER You have to be careful creating the repos ... clone/rsync them before adding the hooks ... (i'm not sure how it happened but I kept getting hooks in the wrong place -- the hooks don't get propagated by normal git commands). -- --gh