Skip to content

Commit 2b7f511

Browse files
msaf9Managoracuteenvy
authored
git-fast-export: add page (#18490)
Co-authored-by: Managor <[email protected]> Co-authored-by: Lena Pastwa <[email protected]>
1 parent 21ce38f commit 2b7f511

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/common/git-fast-export.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# git fast-export
2+
3+
> Exports the contents and history of a Git repository in a streamable, plain-text format.
4+
> More information: <https://manned.org/git-fast-export>.
5+
6+
- Export the entire Git repository history to `stdout`:
7+
8+
`git fast-export --all`
9+
10+
- Export the entire repository to a file:
11+
12+
`git fast-export --all > {{path/to/file}}`
13+
14+
- Export a specific branch only:
15+
16+
`git fast-export {{main}}`
17+
18+
- Export with `progress` statements every `n` objects (for showing progress during `git fast-import`):
19+
20+
`git fast-export --progress {{n}} --all > {{path/to/file}}`
21+
22+
- Export only a specific subdirectory’s history:
23+
24+
`git fast-export --all -- {{path/to/directory}} > {{path/to/file}}`

0 commit comments

Comments
 (0)