OSDN Git Service

Add Git official document to help
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-fast-export.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-fast-export(1)">\r
5 <articleinfo>\r
6     <title>git-fast-export(1)</title>\r
7         <indexterm>\r
8                 <primary>git-fast-export(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-fast-export - Git data exporter</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git fast-export [options]</emphasis> | <emphasis>git fast-import</emphasis></simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>This program dumps the given revisions in a form suitable to be piped\r
22 into <emphasis>git-fast-import</emphasis>.</simpara>\r
23 <simpara>You can use it as a human-readable bundle replacement (see\r
24 <xref linkend="git-bundle(1)"/>), or as a kind of an interactive\r
25 <emphasis>git-filter-branch</emphasis>.</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 --progress=&lt;n&gt;\r
33 </term>\r
34 <listitem>\r
35 <simpara>\r
36         Insert <emphasis>progress</emphasis> statements every &lt;n&gt; objects, to be shown by\r
37         <emphasis>git-fast-import</emphasis> during import.\r
38 </simpara>\r
39 </listitem>\r
40 </varlistentry>\r
41 <varlistentry>\r
42 <term>\r
43 --signed-tags=(verbatim|warn|strip|abort)\r
44 </term>\r
45 <listitem>\r
46 <simpara>\r
47         Specify how to handle signed tags.  Since any transformation\r
48         after the export can change the tag names (which can also happen\r
49         when excluding revisions) the signatures will not match.\r
50 </simpara>\r
51 <simpara>When asking to <emphasis>abort</emphasis> (which is the default), this program will die\r
52 when encountering a signed tag.  With <emphasis>strip</emphasis>, the tags will be made\r
53 unsigned, with <emphasis>verbatim</emphasis>, they will be silently exported\r
54 and with <emphasis>warn</emphasis>, they will be exported, but you will see a warning.</simpara>\r
55 </listitem>\r
56 </varlistentry>\r
57 <varlistentry>\r
58 <term>\r
59 -M\r
60 </term>\r
61 <term>\r
62 -C\r
63 </term>\r
64 <listitem>\r
65 <simpara>\r
66         Perform move and/or copy detection, as described in the\r
67         <xref linkend="git-diff(1)"/> manual page, and use it to generate\r
68         rename and copy commands in the output dump.\r
69 </simpara>\r
70 <simpara>Note that earlier versions of this command did not complain and\r
71 produced incorrect results if you gave these options.</simpara>\r
72 </listitem>\r
73 </varlistentry>\r
74 <varlistentry>\r
75 <term>\r
76 --export-marks=&lt;file&gt;\r
77 </term>\r
78 <listitem>\r
79 <simpara>\r
80         Dumps the internal marks table to &lt;file&gt; when complete.\r
81         Marks are written one per line as <literal>:markid SHA-1</literal>. Only marks\r
82         for revisions are dumped; marks for blobs are ignored.\r
83         Backends can use this file to validate imports after they\r
84         have been completed, or to save the marks table across\r
85         incremental runs.  As &lt;file&gt; is only opened and truncated\r
86         at completion, the same path can also be safely given to\r
87         --import-marks.\r
88 </simpara>\r
89 </listitem>\r
90 </varlistentry>\r
91 <varlistentry>\r
92 <term>\r
93 --import-marks=&lt;file&gt;\r
94 </term>\r
95 <listitem>\r
96 <simpara>\r
97         Before processing any input, load the marks specified in\r
98         &lt;file&gt;.  The input file must exist, must be readable, and\r
99         must use the same format as produced by --export-marks.\r
100 </simpara>\r
101 <simpara>Any commits that have already been marked will not be exported again.\r
102 If the backend uses a similar --import-marks file, this allows for\r
103 incremental bidirectional exporting of the repository by keeping the\r
104 marks the same across runs.</simpara>\r
105 </listitem>\r
106 </varlistentry>\r
107 <varlistentry>\r
108 <term>\r
109 --fake-missing-tagger\r
110 </term>\r
111 <listitem>\r
112 <simpara>\r
113         Some old repositories have tags without a tagger.  The\r
114         fast-import protocol was pretty strict about that, and did not\r
115         allow that.  So fake a tagger to be able to fast-import the\r
116         output.\r
117 </simpara>\r
118 </listitem>\r
119 </varlistentry>\r
120 </variablelist>\r
121 </simplesect>\r
122 <simplesect id="_examples">\r
123 <title>EXAMPLES</title>\r
124 <literallayout>$ git fast-export --all | (cd /empty/repository &amp;&amp; git fast-import)</literallayout>\r
125 <simpara>This will export the whole repository and import it into the existing\r
126 empty repository.  Except for reencoding commits that are not in\r
127 UTF-8, it would be a one-to-one mirror.</simpara>\r
128 <literallayout>$ git fast-export master~5..master |\r
129         sed "s|refs/heads/master|refs/heads/other|" |\r
130         git fast-import</literallayout>\r
131 <simpara>This makes a new branch called <emphasis>other</emphasis> from <emphasis>master~5..master</emphasis>\r
132 (i.e. if <emphasis>master</emphasis> has linear history, it will take the last 5 commits).</simpara>\r
133 <simpara>Note that this assumes that none of the blobs and commit messages\r
134 referenced by that revision range contains the string\r
135 <emphasis>refs/heads/master</emphasis>.</simpara>\r
136 </simplesect>\r
137 <simplesect id="_limitations">\r
138 <title>Limitations</title>\r
139 <simpara>Since <emphasis>git-fast-import</emphasis> cannot tag trees, you will not be\r
140 able to export the linux-2.6.git repository completely, as it contains\r
141 a tag referencing a tree instead of a commit.</simpara>\r
142 </simplesect>\r
143 <simplesect id="_author">\r
144 <title>Author</title>\r
145 <simpara>Written by Johannes E. Schindelin &lt;<ulink url="mailto:johannes.schindelin@gmx.de">johannes.schindelin@gmx.de</ulink>&gt;.</simpara>\r
146 </simplesect>\r
147 <simplesect id="_documentation">\r
148 <title>Documentation</title>\r
149 <simpara>Documentation by Johannes E. Schindelin &lt;<ulink url="mailto:johannes.schindelin@gmx.de">johannes.schindelin@gmx.de</ulink>&gt;.</simpara>\r
150 </simplesect>\r
151 <simplesect id="_git">\r
152 <title>GIT</title>\r
153 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
154 </simplesect>\r
155 </article>\r