mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
![Junio C Hamano](/assets/img/avatar_default.png)
Mention documentation pages that talk about update and post-update hooks from git-push, because a frequently asked question is "I want X to happen when I push" and people would not know to look at git-receive-pack documentation until they understand that is what runs on the other end. Signed-off-by: Junio C Hamano <junkio@cox.net>
51 lines
1 KiB
Plaintext
51 lines
1 KiB
Plaintext
git-push(1)
|
|
===========
|
|
|
|
NAME
|
|
----
|
|
git-push - Update remote refs along with associated objects.
|
|
|
|
|
|
SYNOPSIS
|
|
--------
|
|
'git-push' [--all] [--force] <repository> <refspec>...
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
Updates remote refs using local refs, while sending objects
|
|
necessary to complete the given refs.
|
|
|
|
You can make "interesting" things to happen on the repository
|
|
every time you push into it, by setting up 'hooks' there. See
|
|
documentation for gitlink:git-receive-pack[1].
|
|
|
|
|
|
OPTIONS
|
|
-------
|
|
include::pull-fetch-param.txt[]
|
|
|
|
\--all::
|
|
Instead of naming each ref to push, specifies all refs
|
|
to be pushed.
|
|
|
|
-f, \--force::
|
|
Usually, the command refuses to update a local ref that is
|
|
not an ancestor of the remote ref used to overwrite it.
|
|
This flag disables the check. What this means is that the
|
|
local repository can lose commits; use it with care.
|
|
|
|
|
|
Author
|
|
------
|
|
Written by Junio C Hamano <junkio@cox.net>
|
|
|
|
Documentation
|
|
--------------
|
|
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
|
|
|
|
GIT
|
|
---
|
|
Part of the gitlink:git[7] suite
|
|
|