blob: 2e67362bd4b60607e7ccfeafbfebdc4cf68058e7 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-http-push(1)
2================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-http-push - Push objects over HTTP/DAV to another repository
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3812'git http-push' [--all] [--dry-run] [--force] [--verbose] <url> <ref> [<ref>...]
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
16Sends missing objects to remote repository, and updates the
17remote branch.
18
Junio C Hamanod47c7c22008-06-16 01:52:4719*NOTE*: This command is temporarily disabled if your libcurl
20is older than 7.16, as the combination has been reported
Junio C Hamanoebc53dc2008-01-24 07:28:4921not to work and sometimes corrupts repository.
Junio C Hamano1a4e8412005-12-27 08:17:2322
23OPTIONS
24-------
Junio C Hamano9882a522007-04-27 08:22:2225--all::
Junio C Hamano1a4e8412005-12-27 08:17:2326Do not assume that the remote repository is complete in its
27current state, and verify all objects in the entire local
28ref's history exist in the remote repository.
29
30--force::
31Usually, the command refuses to update a remote ref that
32is not an ancestor of the local ref used to overwrite it.
33This flag disables the check. What this means is that
34the remote repository can lose commits; use it with
35care.
36
Junio C Hamanoc2b47092007-10-25 06:50:3137--dry-run::
38Do everything except actually send the updates.
39
Junio C Hamano1a4e8412005-12-27 08:17:2340--verbose::
41Report the list of objects being walked locally and the
42list of objects successfully sent to the remote repository.
43
Junio C Hamanoeb415992008-06-08 22:49:4744-d::
45-D::
Junio C Hamano9882a522007-04-27 08:22:2246Remove <ref> from remote repository. The specified branch
47cannot be the remote HEAD. If -d is specified the following
48other conditions must also be met:
49
50- Remote HEAD must resolve to an object that exists locally
51- Specified branch resolves to an object that exists locally
52- Specified branch is an ancestor of the remote HEAD
53
Junio C Hamano21c0b422006-10-12 19:10:3654<ref>...::
Junio C Hamano1a4e8412005-12-27 08:17:2355The remote refs to update.
56
57
58Specifying the Refs
59-------------------
60
61A '<ref>' specification can be either a single pattern, or a pair
62of such patterns separated by a colon ":" (this means that a ref name
Junio C Hamanoa77a5132007-06-08 16:13:4463cannot have a colon in it). A single pattern '<name>' is just a
Junio C Hamano1a4e8412005-12-27 08:17:2364shorthand for '<name>:<name>'.
65
66Each pattern pair consists of the source side (before the colon)
67and the destination side (after the colon). The ref to be
68pushed is determined by finding a match that matches the source
69side, and where it is pushed is determined by using the
70destination side.
71
72 - It is an error if <src> does not match exactly one of the
73 local refs.
74
75 - If <dst> does not match any remote ref, either
76
77 * it has to start with "refs/"; <dst> is used as the
78 destination literally in this case.
79
80 * <src> == <dst> and the ref that matched the <src> must not
81 exist in the set of remote refs; the ref matched <src>
82 locally is used as the name of the destination.
83
84Without '--force', the <src> ref is stored at the remote only if
85<dst> does not exist, or <dst> is a proper subset (i.e. an
Junio C Hamano3f680f32009-11-16 02:10:5486ancestor) of <src>. This check, known as "fast-forward check",
Junio C Hamano1a4e8412005-12-27 08:17:2387is performed in order to avoid accidentally overwriting the
88remote ref and lose other peoples' commits from there.
89
Junio C Hamano3f680f32009-11-16 02:10:5490With '--force', the fast-forward check is disabled for all refs.
Junio C Hamano1a4e8412005-12-27 08:17:2391
92Optionally, a <ref> parameter can be prefixed with a plus '+' sign
93to disable the fast-forward check only on that ref.
94
Junio C Hamano1a4e8412005-12-27 08:17:2395GIT
96---
Junio C Hamanof7c042d2008-06-06 22:50:5397Part of the linkgit:git[1] suite