git-fast-export: add page (#18490)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
Sahil Afrid Farookhi
2025-10-06 18:36:56 +00:00
committed by GitHub
co-authored by Managor Lena Pastwa
parent 21ce38f6d3
commit 2b7f511cbf
+24
View File
@@ -0,0 +1,24 @@
# git fast-export
> Exports the contents and history of a Git repository in a streamable, plain-text format.
> More information: <https://manned.org/git-fast-export>.
- Export the entire Git repository history to `stdout`:
`git fast-export --all`
- Export the entire repository to a file:
`git fast-export --all > {{path/to/file}}`
- Export a specific branch only:
`git fast-export {{main}}`
- Export with `progress` statements every `n` objects (for showing progress during `git fast-import`):
`git fast-export --progress {{n}} --all > {{path/to/file}}`
- Export only a specific subdirectorys history:
`git fast-export --all -- {{path/to/directory}} > {{path/to/file}}`