From: Alex Riesen Date: Mon, 17 Aug 2009 20:27:50 GMT Subject: Re: How-to checkin git hook Message-ID: <81b0412b0908171327l1dd1a36n5e58828d70b18bfe@mail.gmail.com> In-Reply-To: <4A89BA5D.1000608@gmail.com> On Mon, Aug 17, 2009 at 22:15, Joe D'Abbraccio wrote: > I have not been able to find out how to commit and push a hook to my git > server archive for everyone's benefit. The githooks man page does not > describe this and I have not turned up any fruitful google searches on the > topic. > > I am trying to add a post-checkout hook. I also noticed that the > post-checkout sample does not exist when I init a new archive. Is this a > bug?  I am running git version 1.6.0.2. No. It didn't occurred to anyone before to push repository's configuration and service files (the hooks). Everybody just copied them into the server repositories or edited them in place. If the server is a public place like github, it is not very likely they allow you to run anything you like on their servers (and hooks are programs).