Asynchronous git hook?
问题 I execute unit tests on post-receive but don't want the user to wait for it. I tried the suggestions from the git-user mailing list ("just & it") but this is not working: https://groups.google.com/forum/#!topic/git-users/CFshrDgYYzE git seems to wait for the bash script to exit even if I just put this in hooks/post-receive: exec-unit-tests.sh & 回答1: This worked for me. & and the stdout & stderr pipe must be closed: long-running-command >&- 2>&- & In order to put the command in the background,