Possible Duplicate:
Local executing hook after a git push?
git has a number of hooks that can call scripts near certain events.
Is it possible to setup a git hook in my working repository that executes something locally after I push to a remote branch? If so which hook is it?
The list of hooks in
man githooksis complete. There is no post-push hook. There are hooks which run in a repository after someone’s pushed into it (i.e. for putting in the central repository), but nothing is triggered in the repository that you pushed from.If there’s a common task you need to do after pushing, you could make an alias which pushes then does that.