@@ -223,8 +223,8 @@ to the user by writing to standard error.
223223pre-receive
224224~~~~~~~~~~~
225225
226- This hook is invoked by 'git-receive-pack' on the remote repository,
227- which happens when a 'git push' is done on a local repository.
226+ This hook is invoked by 'git-receive-pack' when it reacts to
227+ 'git push' and updates reference(s) in its repository.
228228Just before starting to update refs on the remote repository, the
229229pre-receive hook is invoked. Its exit status determines the success
230230or failure of the update.
@@ -264,8 +264,8 @@ linkgit:git-receive-pack[1] for some caveats.
264264update
265265~~~~~~
266266
267- This hook is invoked by 'git-receive-pack' on the remote repository,
268- which happens when a 'git push' is done on a local repository.
267+ This hook is invoked by 'git-receive-pack' when it reacts to
268+ 'git push' and updates reference(s) in its repository.
269269Just before updating the ref on the remote repository, the update hook
270270is invoked. Its exit status determines the success or failure of
271271the ref update.
@@ -309,8 +309,8 @@ unannotated tags to be pushed.
309309post-receive
310310~~~~~~~~~~~~
311311
312- This hook is invoked by 'git-receive-pack' on the remote repository,
313- which happens when a 'git push' is done on a local repository.
312+ This hook is invoked by 'git-receive-pack' when it reacts to
313+ 'git push' and updates reference(s) in its repository.
314314It executes on the remote repository once after all the refs have
315315been updated.
316316
@@ -348,8 +348,8 @@ will be set to zero, `GIT_PUSH_OPTION_COUNT=0`.
348348post-update
349349~~~~~~~~~~~
350350
351- This hook is invoked by 'git-receive-pack' on the remote repository,
352- which happens when a 'git push' is done on a local repository.
351+ This hook is invoked by 'git-receive-pack' when it reacts to
352+ 'git push' and updates reference(s) in its repository.
353353It executes on the remote repository once after all the refs have
354354been updated.
355355
@@ -379,8 +379,8 @@ for the user.
379379push-to-checkout
380380~~~~~~~~~~~~~~~~
381381
382- This hook is invoked by 'git-receive-pack' on the remote repository,
383- which happens when a 'git push' is done on a local repository, when
382+ This hook is invoked by 'git-receive-pack' when it reacts to
383+ 'git push' and updates reference(s) in its repository, and when
384384the push tries to update the branch that is currently checked out
385385and the `receive.denyCurrentBranch` configuration variable is set to
386386`updateInstead`. Such a push by default is refused if the working
0 commit comments