Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-http-push.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-http-push.adoc` 96 lines ยท 2995 bytes Raw Blame History 1 git-http-push(1) 2 ================ 3 4 NAME 5 ---- 6 git-http-push - Push objects over HTTP/DAV to another repository 7 8 9 SYNOPSIS 10 -------- 11 [verse] 12 'git http-push' [--all] [--dry-run] [--force] [--verbose] [...] 13 14 DESCRIPTION 15 ----------- 16 Sends missing objects to the remote repository, and updates the 17 remote branch. 18 19 *NOTE*: This command is temporarily disabled if your libcurl 20 is older than 7.16, as the combination has been reported 21 not to work and sometimes corrupts the repository. 22 23 OPTIONS 24 ------- 25 --all:: 26 Do not assume that the remote repository is complete in its 27 current state, and verify all objects in the entire local 28 ref's history exist in the remote repository. 29 30 --force:: 31 Usually, the command refuses to update a remote ref that 32 is not an ancestor of the local ref used to overwrite it. 33 This flag disables the check. What this means is that 34 the remote repository can lose commits; use it with 35 care. 36 37 --dry-run:: 38 Do everything except actually send the updates. 39 40 --verbose:: 41 Report the list of objects being walked locally and the 42 list of objects successfully sent to the remote repository. 43 44 -d:: 45 -D:: 46 Remove from remote repository. The specified branch 47 cannot be the remote HEAD. If -d is specified, the following 48 other 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 54 ...:: 55 The remote refs to update. 56 57 58 SPECIFYING THE REFS 59 ------------------- 60 61 A '' specification can be either a single pattern, or a pair 62 of such patterns separated by a colon ":" (this means that a ref name 63 cannot have a colon in it). A single pattern '' is just a 64 shorthand for ':'. 65 66 Each pattern pair ':' consists of the source side (before 67 the colon) and the destination side (after the colon). The ref to be 68 pushed is determined by finding a match that matches the source side, 69 and where it is pushed is determined by using the destination side. 70 71 - It is an error if '' does not match exactly one of the 72 local refs. 73 74 - If '' does not match any remote ref, either 75 76 * it has to start with "refs/"; is used as the 77 destination literally in this case. 78 79 * == and the ref that matched the must not 80 exist in the set of remote refs; the ref matched 81 locally is used as the name of the destination. 82 83 Without `--force`, the ref is stored at the remote only if 84 does not exist, or is a proper subset (i.e. an 85 ancestor) of . This check, known as "fast-forward check", 86 is performed to avoid accidentally overwriting the 87 remote ref and losing other peoples' commits from there. 88 89 With `--force`, the fast-forward check is disabled for all refs. 90 91 Optionally, a parameter can be prefixed with a plus '+' sign 92 to disable the fast-forward check only on that ref. 93 94 GIT 95 --- 96 Part of the linkgit:git[1] suite