pre-receive is executed first when the client pushes, and can be used to reject the client's push. update is similar to pre-receive, but will be executed once for each branch. post-receive Executed after the client push is completed.
I also asked this question, and someone gave me the answer /q/1010000004382023 It is indeed the case... Create a new document directly to write the content, save it, and then chmod +x post-receive to ensure that it is executable...
pre-receive
is executed first when the client pushes, and can be used to reject the client's push.
update
is similar to pre-receive, but will be executed once for each branch.
post-receive
Executed after the client push is completed.
I also asked this question, and someone gave me the answer /q/1010000004382023
It is indeed the case... Create a new document directly to write the content, save it, and then chmod +x post-receive to ensure that it is executable...