]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-fast-export.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-fast-export.txt
CommitLineData
f2dc849e
JS
1git-fast-export(1)
2==================
3
4NAME
5----
6git-fast-export - Git data exporter
7
8
9SYNOPSIS
10--------
b1889c36 11'git fast-export [options]' | 'git fast-import'
f2dc849e
JS
12
13DESCRIPTION
14-----------
15This program dumps the given revisions in a form suitable to be piped
5162e697 16into linkgit:git-fast-import[1].
f2dc849e
JS
17
18You can use it as a human readable bundle replacement (see
5162e697
DM
19linkgit:git-bundle[1]), or as a kind of an interactive
20linkgit:git-filter-branch[1].
f2dc849e
JS
21
22
23OPTIONS
24-------
25--progress=<n>::
26 Insert 'progress' statements every <n> objects, to be shown by
5162e697 27 linkgit:git-fast-import[1] during import.
f2dc849e 28
ee4bc371 29--signed-tags=(verbatim|warn|strip|abort)::
f2dc849e
JS
30 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
ee4bc371 36unsigned, with 'verbatim', they will be silently exported
f2dc849e
JS
37and with 'warn', they will be exported, but you will see a warning.
38
df6a7ff7
PB
39--export-marks=<file>::
40 Dumps the internal marks table to <file> when complete.
41 Marks are written one per line as `:markid SHA-1`. Only marks
42 for revisions are dumped; marks for blobs are ignored.
43 Backends can use this file to validate imports after they
44 have been completed, or to save the marks table across
45 incremental runs. As <file> is only opened and truncated
46 at completion, the same path can also be safely given to
47 \--import-marks.
48
49--import-marks=<file>::
50 Before processing any input, load the marks specified in
51 <file>. The input file must exist, must be readable, and
52 must use the same format as produced by \--export-marks.
53+
54Any commits that have already been marked will not be exported again.
55If the backend uses a similar \--import-marks file, this allows for
56incremental bidirectional exporting of the repository by keeping the
57marks the same across runs.
58
f2dc849e
JS
59
60EXAMPLES
61--------
62
63-------------------------------------------------------------------
64$ git fast-export --all | (cd /empty/repository && git fast-import)
65-------------------------------------------------------------------
66
67This will export the whole repository and import it into the existing
68empty repository. Except for reencoding commits that are not in
69UTF-8, it would be a one-to-one mirror.
70
71-----------------------------------------------------
72$ git fast-export master~5..master |
73 sed "s|refs/heads/master|refs/heads/other|" |
74 git fast-import
75-----------------------------------------------------
76
77This makes a new branch called 'other' from 'master~5..master'
78(i.e. if 'master' has linear history, it will take the last 5 commits).
79
80Note that this assumes that none of the blobs and commit messages
81referenced by that revision range contains the string
82'refs/heads/master'.
83
84
85Limitations
86-----------
87
5162e697 88Since linkgit:git-fast-import[1] cannot tag trees, you will not be
f2dc849e
JS
89able to export the linux-2.6.git repository completely, as it contains
90a tag referencing a tree instead of a commit.
91
92
93Author
94------
95Written by Johannes E. Schindelin <johannes.schindelin@gmx.de>.
96
97Documentation
98--------------
99Documentation by Johannes E. Schindelin <johannes.schindelin@gmx.de>.
100
101GIT
102---
9e1f0a85 103Part of the linkgit:git[1] suite