How do I hook a git pull on the remote?
Posted
by Danny
on Stack Overflow
See other posts from Stack Overflow
or by Danny
Published on 2010-05-08T15:53:58Z
Indexed on
2010/05/08
15:58 UTC
Read the original article
Hit count: 332
Is there a way to hook when a git pull happens on the remote (similar to a pre-receive or post-receive). Basically I'd like to be able to cause the remote to commit whatever it has when there is a pull.
In my situation, whatever is live on the remote is an authoritative source which may get modified without a git commit. I want to make sure when I pull I'm always able to get the latest of whatever is live.
© Stack Overflow or respective owner