blob: 7c6a6dd7f6a7fc9c75bf0ae595b12732d5c17765 [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 Hamano59a32b02021-12-10 22:53: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
Junio C Hamanob9d9d902018-05-23 07:07:4258SPECIFYING THE REFS
Junio C Hamano1a4e8412005-12-27 08:17:2359-------------------
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
Junio C Hamano59a32b02021-12-10 22:53:3866Each pattern pair '<src>:<dst>' consists of the source side (before
67the colon) and the destination side (after the colon). The ref to be
68pushed is determined by finding a match that matches the source side,
69and where it is pushed is determined by using the destination side.
Junio C Hamano1a4e8412005-12-27 08:17:2370
Junio C Hamano59a32b02021-12-10 22:53:3871 - It is an error if '<src>' does not match exactly one of the
Junio C Hamano1a4e8412005-12-27 08:17:2372 local refs.
73
Junio C Hamano59a32b02021-12-10 22:53:3874 - If '<dst>' does not match any remote ref, either
Junio C Hamano1a4e8412005-12-27 08:17:2375
76 * it has to start with "refs/"; <dst> is used as the
77 destination literally in this case.
78
79 * <src> == <dst> and the ref that matched the <src> must not
80 exist in the set of remote refs; the ref matched <src>
81 locally is used as the name of the destination.
82
Junio C Hamano92d80372016-07-13 22:00:0583Without `--force`, the <src> ref is stored at the remote only if
Junio C Hamano1a4e8412005-12-27 08:17:2384<dst> does not exist, or <dst> is a proper subset (i.e. an
Junio C Hamano3f680f32009-11-16 02:10:5485ancestor) of <src>. This check, known as "fast-forward check",
Junio C Hamano1a4e8412005-12-27 08:17:2386is performed in order to avoid accidentally overwriting the
87remote ref and lose other peoples' commits from there.
88
Junio C Hamano92d80372016-07-13 22:00:0589With `--force`, the fast-forward check is disabled for all refs.
Junio C Hamano1a4e8412005-12-27 08:17:2390
91Optionally, a <ref> parameter can be prefixed with a plus '+' sign
92to disable the fast-forward check only on that ref.
93
Junio C Hamano1a4e8412005-12-27 08:17:2394GIT
95---
Junio C Hamanof7c042d2008-06-06 22:50:5396Part of the linkgit:git[1] suite