OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-http-push.html.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-http-push(1)">\r
5 <articleinfo>\r
6     <title>git-http-push(1)</title>\r
7         <indexterm>\r
8                 <primary>git-http-push(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-http-push - Push objects over HTTP/DAV to another repository</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git http-push</emphasis> [--all] [--dry-run] [--force] [--verbose] &lt;url&gt; &lt;ref&gt; [&lt;ref&gt;&#8230;]</simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>Sends missing objects to remote repository, and updates the\r
22 remote branch.</simpara>\r
23 <simpara><emphasis role="strong">NOTE</emphasis>: This command is temporarily disabled if your libcurl\r
24 is older than 7.16, as the combination has been reported\r
25 not to work and sometimes corrupts repository.</simpara>\r
26 </simplesect>\r
27 <simplesect id="_options">\r
28 <title>OPTIONS</title>\r
29 <variablelist>\r
30 <varlistentry>\r
31 <term>\r
32 --all\r
33 </term>\r
34 <listitem>\r
35 <simpara>\r
36         Do not assume that the remote repository is complete in its\r
37         current state, and verify all objects in the entire local\r
38         ref&#8217;s history exist in the remote repository.\r
39 </simpara>\r
40 </listitem>\r
41 </varlistentry>\r
42 <varlistentry>\r
43 <term>\r
44 --force\r
45 </term>\r
46 <listitem>\r
47 <simpara>\r
48         Usually, the command refuses to update a remote ref that\r
49         is not an ancestor of the local ref used to overwrite it.\r
50         This flag disables the check.  What this means is that\r
51         the remote repository can lose commits; use it with\r
52         care.\r
53 </simpara>\r
54 </listitem>\r
55 </varlistentry>\r
56 <varlistentry>\r
57 <term>\r
58 --dry-run\r
59 </term>\r
60 <listitem>\r
61 <simpara>\r
62         Do everything except actually send the updates.\r
63 </simpara>\r
64 </listitem>\r
65 </varlistentry>\r
66 <varlistentry>\r
67 <term>\r
68 --verbose\r
69 </term>\r
70 <listitem>\r
71 <simpara>\r
72         Report the list of objects being walked locally and the\r
73         list of objects successfully sent to the remote repository.\r
74 </simpara>\r
75 </listitem>\r
76 </varlistentry>\r
77 <varlistentry>\r
78 <term>\r
79 -d\r
80 </term>\r
81 <term>\r
82 -D\r
83 </term>\r
84 <listitem>\r
85 <simpara>\r
86         Remove &lt;ref&gt; from remote repository.  The specified branch\r
87         cannot be the remote HEAD.  If -d is specified the following\r
88         other conditions must also be met:\r
89 </simpara>\r
90 <itemizedlist>\r
91 <listitem>\r
92 <simpara>\r
93 Remote HEAD must resolve to an object that exists locally\r
94 </simpara>\r
95 </listitem>\r
96 <listitem>\r
97 <simpara>\r
98 Specified branch resolves to an object that exists locally\r
99 </simpara>\r
100 </listitem>\r
101 <listitem>\r
102 <simpara>\r
103 Specified branch is an ancestor of the remote HEAD\r
104 </simpara>\r
105 </listitem>\r
106 </itemizedlist>\r
107 </listitem>\r
108 </varlistentry>\r
109 <varlistentry>\r
110 <term>\r
111 &lt;ref&gt;&#8230;\r
112 </term>\r
113 <listitem>\r
114 <simpara>\r
115         The remote refs to update.\r
116 </simpara>\r
117 </listitem>\r
118 </varlistentry>\r
119 </variablelist>\r
120 </simplesect>\r
121 <simplesect id="_specifying_the_refs">\r
122 <title>Specifying the Refs</title>\r
123 <simpara>A <emphasis>&lt;ref&gt;</emphasis> specification can be either a single pattern, or a pair\r
124 of such patterns separated by a colon ":" (this means that a ref name\r
125 cannot have a colon in it).  A single pattern <emphasis>&lt;name&gt;</emphasis> is just a\r
126 shorthand for <emphasis>&lt;name&gt;:&lt;name&gt;</emphasis>.</simpara>\r
127 <simpara>Each pattern pair consists of the source side (before the colon)\r
128 and the destination side (after the colon).  The ref to be\r
129 pushed is determined by finding a match that matches the source\r
130 side, and where it is pushed is determined by using the\r
131 destination side.</simpara>\r
132 <itemizedlist>\r
133 <listitem>\r
134 <simpara>\r
135 It is an error if &lt;src&gt; does not match exactly one of the\r
136    local refs.\r
137 </simpara>\r
138 </listitem>\r
139 <listitem>\r
140 <simpara>\r
141 If &lt;dst&gt; does not match any remote ref, either\r
142 </simpara>\r
143 <itemizedlist>\r
144 <listitem>\r
145 <simpara>\r
146 it has to start with "refs/"; &lt;dst&gt; is used as the\r
147      destination literally in this case.\r
148 </simpara>\r
149 </listitem>\r
150 <listitem>\r
151 <simpara>\r
152 &lt;src&gt; == &lt;dst&gt; and the ref that matched the &lt;src&gt; must not\r
153      exist in the set of remote refs; the ref matched &lt;src&gt;\r
154      locally is used as the name of the destination.\r
155 </simpara>\r
156 </listitem>\r
157 </itemizedlist>\r
158 </listitem>\r
159 </itemizedlist>\r
160 <simpara>Without <emphasis>--force</emphasis>, the &lt;src&gt; ref is stored at the remote only if\r
161 &lt;dst&gt; does not exist, or &lt;dst&gt; is a proper subset (i.e. an\r
162 ancestor) of &lt;src&gt;.  This check, known as "fast forward check",\r
163 is performed in order to avoid accidentally overwriting the\r
164 remote ref and lose other peoples' commits from there.</simpara>\r
165 <simpara>With <emphasis>--force</emphasis>, the fast forward check is disabled for all refs.</simpara>\r
166 <simpara>Optionally, a &lt;ref&gt; parameter can be prefixed with a plus <emphasis>+</emphasis> sign\r
167 to disable the fast-forward check only on that ref.</simpara>\r
168 </simplesect>\r
169 <simplesect id="_author">\r
170 <title>Author</title>\r
171 <simpara>Written by Nick Hengeveld &lt;<ulink url="mailto:nickh@reactrix.com">nickh@reactrix.com</ulink>&gt;</simpara>\r
172 </simplesect>\r
173 <simplesect id="_documentation">\r
174 <title>Documentation</title>\r
175 <simpara>Documentation by Nick Hengeveld</simpara>\r
176 </simplesect>\r
177 <simplesect id="_git">\r
178 <title>GIT</title>\r
179 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
180 </simplesect>\r
181 </article>\r