blob: 0c9eb567cb3e3af89a2e2613d1e074941fa30d13 [file] [log] [blame]
Johannes Schindelinf2dc8492007-12-02 14:14:13 +00001git-fast-export(1)
2==================
3
4NAME
5----
6git-fast-export - Git data exporter
7
8
9SYNOPSIS
10--------
Jonathan Niederb1889c32008-06-30 01:09:04 -050011'git fast-export [options]' | 'git fast-import'
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000012
13DESCRIPTION
14-----------
15This program dumps the given revisions in a form suitable to be piped
Jonathan Niederba020ef2008-07-03 00:41:41 -050016into 'git-fast-import'.
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000017
Ralf Wildenhues29b802a2008-12-09 07:23:51 +010018You can use it as a human-readable bundle replacement (see
Dan McGee5162e692007-12-29 00:20:38 -060019linkgit:git-bundle[1]), or as a kind of an interactive
Jonathan Niederba020ef2008-07-03 00:41:41 -050020'git-filter-branch'.
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000021
22
23OPTIONS
24-------
25--progress=<n>::
26 Insert 'progress' statements every <n> objects, to be shown by
Jonathan Niederba020ef2008-07-03 00:41:41 -050027 'git-fast-import' during import.
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000028
Johannes Schindelinee4bc372007-12-03 22:44:39 +000029--signed-tags=(verbatim|warn|strip|abort)::
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000030 Specify how to handle signed tags. Since any transformation
31 after the export can change the tag names (which can also happen
32 when excluding revisions) the signatures will not match.
33+
34When asking to 'abort' (which is the default), this program will die
35when encountering a signed tag. With 'strip', the tags will be made
Johannes Schindelinee4bc372007-12-03 22:44:39 +000036unsigned, with 'verbatim', they will be silently exported
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000037and with 'warn', they will be exported, but you will see a warning.
38
Alexander Gavrilovae7c5dc2008-07-27 00:52:54 +040039-M::
40-C::
41 Perform move and/or copy detection, as described in the
42 linkgit:git-diff[1] manual page, and use it to generate
43 rename and copy commands in the output dump.
44+
45Note that earlier versions of this command did not complain and
46produced incorrect results if you gave these options.
47
Pieter de Biedf6a7ff2008-06-11 13:17:04 +020048--export-marks=<file>::
49 Dumps the internal marks table to <file> when complete.
50 Marks are written one per line as `:markid SHA-1`. Only marks
51 for revisions are dumped; marks for blobs are ignored.
52 Backends can use this file to validate imports after they
53 have been completed, or to save the marks table across
54 incremental runs. As <file> is only opened and truncated
55 at completion, the same path can also be safely given to
56 \--import-marks.
57
58--import-marks=<file>::
59 Before processing any input, load the marks specified in
60 <file>. The input file must exist, must be readable, and
61 must use the same format as produced by \--export-marks.
62+
63Any commits that have already been marked will not be exported again.
64If the backend uses a similar \--import-marks file, this allows for
65incremental bidirectional exporting of the repository by keeping the
66marks the same across runs.
67
Johannes Schindelin4e46a8d2008-12-20 01:00:27 +010068--fake-missing-tagger::
69 Some old repositories have tags without a tagger. The
70 fast-import protocol was pretty strict about that, and did not
71 allow that. So fake a tagger to be able to fast-import the
72 output.
73
Johannes Schindelinf2dc8492007-12-02 14:14:13 +000074
75EXAMPLES
76--------
77
78-------------------------------------------------------------------
79$ git fast-export --all | (cd /empty/repository && git fast-import)
80-------------------------------------------------------------------
81
82This will export the whole repository and import it into the existing
83empty repository. Except for reencoding commits that are not in
84UTF-8, it would be a one-to-one mirror.
85
86-----------------------------------------------------
87$ git fast-export master~5..master |
88 sed "s|refs/heads/master|refs/heads/other|" |
89 git fast-import
90-----------------------------------------------------
91
92This makes a new branch called 'other' from 'master~5..master'
93(i.e. if 'master' has linear history, it will take the last 5 commits).
94
95Note that this assumes that none of the blobs and commit messages
96referenced by that revision range contains the string
97'refs/heads/master'.
98
99
100Limitations
101-----------
102
Jonathan Niederba020ef2008-07-03 00:41:41 -0500103Since 'git-fast-import' cannot tag trees, you will not be
Johannes Schindelinf2dc8492007-12-02 14:14:13 +0000104able to export the linux-2.6.git repository completely, as it contains
105a tag referencing a tree instead of a commit.
106
107
108Author
109------
110Written by Johannes E. Schindelin <johannes.schindelin@gmx.de>.
111
112Documentation
113--------------
114Documentation by Johannes E. Schindelin <johannes.schindelin@gmx.de>.
115
116GIT
117---
Christian Couder9e1f0a82008-06-06 09:07:32 +0200118Part of the linkgit:git[1] suite