How do I hook a git pull on the remote?

后端 未结 6 1512
陌清茗
陌清茗 2021-02-05 21:19

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 i

6条回答
  •  情深已故
    2021-02-05 22:07

    Who/what is editing this file? If it's something being changed when someone changes something on a site, that must be triggered by something, which means you can automate this. When this something happens and the file is saved, there you should trigger the commit. The commit has to be done sometime and it might as well be at that time.

提交回复
热议问题