1GIT-FAST-EXPORT(1) Git Manual GIT-FAST-EXPORT(1)
2
3
4
6 git-fast-export - Git data exporter
7
9 git fast-export [options] | git fast-import
10
12 This program dumps the given revisions in a form suitable to be piped
13 into git fast-import.
14
15 You can use it as a human-readable bundle replacement (see git-
16 bundle(1)), or as a kind of an interactive git filter-branch.
17
19 --progress=<n>
20 Insert progress statements every <n> objects, to be shown by git
21 fast-import during import.
22
23 --signed-tags=(verbatim|warn|strip|abort)
24 Specify how to handle signed tags. Since any transformation after
25 the export can change the tag names (which can also happen when
26 excluding revisions) the signatures will not match.
27
28 When asking to abort (which is the default), this program will die
29 when encountering a signed tag. With strip, the tags will be made
30 unsigned, with verbatim, they will be silently exported and with
31 warn, they will be exported, but you will see a warning.
32
33 --tag-of-filtered-object=(abort|drop|rewrite)
34 Specify how to handle tags whose tagged object is filtered out.
35 Since revisions and files to export can be limited by path, tagged
36 objects may be filtered completely.
37
38 When asking to abort (which is the default), this program will die
39 when encountering such a tag. With drop it will omit such tags from
40 the output. With rewrite, if the tagged object is a commit, it will
41 rewrite the tag to tag an ancestor commit (via parent rewriting;
42 see git-rev-list(1))
43
44 -M, -C
45 Perform move and/or copy detection, as described in the git-diff(1)
46 manual page, and use it to generate rename and copy commands in the
47 output dump.
48
49 Note that earlier versions of this command did not complain and
50 produced incorrect results if you gave these options.
51
52 --export-marks=<file>
53 Dumps the internal marks table to <file> when complete. Marks are
54 written one per line as :markid SHA-1. Only marks for revisions are
55 dumped; marks for blobs are ignored. Backends can use this file to
56 validate imports after they have been completed, or to save the
57 marks table across incremental runs. As <file> is only opened and
58 truncated at completion, the same path can also be safely given to
59 --import-marks.
60
61 --import-marks=<file>
62 Before processing any input, load the marks specified in <file>.
63 The input file must exist, must be readable, and must use the same
64 format as produced by --export-marks.
65
66 Any commits that have already been marked will not be exported
67 again. If the backend uses a similar --import-marks file, this
68 allows for incremental bidirectional exporting of the repository by
69 keeping the marks the same across runs.
70
71 --fake-missing-tagger
72 Some old repositories have tags without a tagger. The fast-import
73 protocol was pretty strict about that, and did not allow that. So
74 fake a tagger to be able to fast-import the output.
75
76 --no-data
77 Skip output of blob objects and instead refer to blobs via their
78 original SHA-1 hash. This is useful when rewriting the directory
79 structure or history of a repository without touching the contents
80 of individual files. Note that the resulting stream can only be
81 used by a repository which already contains the necessary objects.
82
83 --full-tree
84 This option will cause fast-export to issue a "deleteall" directive
85 for each commit followed by a full list of all files in the commit
86 (as opposed to just listing the files which are different from the
87 commit’s first parent).
88
89 [<git-rev-list-args>...]
90 A list of arguments, acceptable to git rev-parse and git rev-list,
91 that specifies the specific objects and references to export. For
92 example, master~10..master causes the current master reference to
93 be exported along with all objects added since its 10th ancestor
94 commit.
95
97 $ git fast-export --all | (cd /empty/repository && git fast-import)
98
99
100 This will export the whole repository and import it into the existing
101 empty repository. Except for reencoding commits that are not in UTF-8,
102 it would be a one-to-one mirror.
103
104 $ git fast-export master~5..master |
105 sed "s|refs/heads/master|refs/heads/other|" |
106 git fast-import
107
108
109 This makes a new branch called other from master~5..master (i.e. if
110 master has linear history, it will take the last 5 commits).
111
112 Note that this assumes that none of the blobs and commit messages
113 referenced by that revision range contains the string
114 refs/heads/master.
115
117 Since git fast-import cannot tag trees, you will not be able to export
118 the linux-2.6.git repository completely, as it contains a tag
119 referencing a tree instead of a commit.
120
122 Written by Johannes E. Schindelin <johannes.schindelin@gmx.de[1]>.
123
125 Documentation by Johannes E. Schindelin
126 <johannes.schindelin@gmx.de[1]>.
127
129 Part of the git(1) suite
130
132 1. johannes.schindelin@gmx.de
133 mailto:johannes.schindelin@gmx.de
134
135
136
137Git 1.7.4.4 04/11/2011 GIT-FAST-EXPORT(1)