# push-hook (on the receiving side)

2 messages from 2007-04-17 to 2007-04-17. Participants: Yakov Lerner, Michael Spang.
Thread: https://gitlist.dev/t/7702

## Yakov Lerner, 2007-04-17 01:05

Subject: push-hook (on the receiving side)
Message-ID: <f36b08ee0704161805yd9cbd22ue8af69682979daba@mail.gmail.com>
URL: https://gitlist.dev/e/f36b08ee0704161805yd9cbd22ue8af69682979daba%40mail.gmail.com

```
How can I define the push-hook on the receiving side of the
push, so that some script or command is executed on the
repo on the receiving side of the push ?

Thanks
Yakov

```

## Michael Spang, 2007-04-17 01:13

Subject: Re: push-hook (on the receiving side)
Message-ID: <46241F29.2010509@gmail.com>
URL: https://gitlist.dev/e/46241F29.2010509%40gmail.com
In-Reply-To: <f36b08ee0704161805yd9cbd22ue8af69682979daba@mail.gmail.com>

```
Yakov Lerner wrote:
> How can I define the push-hook on the receiving side of the
> push, so that some script or command is executed on the
> repo on the receiving side of the push ?
> 
> Thanks
> Yakov
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Yes, receive-pack has hooks for this. See git-receive-pack(1) and hooks.txt.

Cheers,
Michael Spang

```
