Force git to run post-receive hook, even if everything is “up-to-date”

后端 未结 9 1766
再見小時候
再見小時候 2020-11-30 19:27

How do I force git to run a post-receive hook on a server even if I don\'t have a new commit to push?

Background

I use git to aut

9条回答
  •  抹茶落季
    2020-11-30 19:42

    I tried empty commits and delete upload branch.

    But what about a direct ssh command:

    ssh your_host /path/to/your_repo/hooks/post-receive
    

提交回复
热议问题