combine-diff: do not punt on removed or added files.
[git/git.git] / Documentation / git-push.txt
CommitLineData
215a7ad1
JH
1git-push(1)
2===========
7fc9d69f
JH
3
4NAME
5----
215a7ad1 6git-push - Update remote refs along with associated objects.
7fc9d69f
JH
7
8
9SYNOPSIS
10--------
42301e34 11'git-push' [--all] [--tags] [--force] <repository> <refspec>...
7fc9d69f
JH
12
13DESCRIPTION
14-----------
ab9b3138
JH
15
16Updates remote refs using local refs, while sending objects
17necessary to complete the given refs.
7fc9d69f 18
eb0362a4
JH
19You can make "interesting" things to happen on the repository
20every time you push into it, by setting up 'hooks' there. See
21documentation for gitlink:git-receive-pack[1].
22
7fc9d69f
JH
23
24OPTIONS
25-------
ab9b3138 26include::pull-fetch-param.txt[]
7fc9d69f 27
d6a73596
JH
28\--all::
29 Instead of naming each ref to push, specifies all refs
30 to be pushed.
31
42301e34
JH
32\--tags::
33 All refs under `$GIT_DIR/refs/tags` are pushed, in
34 addition to refspecs explicitly listed on the command
35 line.
36
d6a73596 37-f, \--force::
f0fff36e
BF
38 Usually, the command refuses to update a remote ref that is
39 not a descendent of the local ref used to overwrite it.
40 This flag disables the check. This can cause the
41 remote repository to lose commits; use it with care.
7fc9d69f 42
eb0362a4 43
7fc9d69f
JH
44Author
45------
46Written by Junio C Hamano <junkio@cox.net>
47
48Documentation
49--------------
50Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
51
52GIT
53---
a7154e91 54Part of the gitlink:git[7] suite
7fc9d69f 55