From 2b7f511cbf649272251c70c10db47c9d2c2e93d9 Mon Sep 17 00:00:00 2001 From: Sahil Afrid Farookhi Date: Mon, 6 Oct 2025 13:36:56 -0500 Subject: [PATCH] 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> --- pages/common/git-fast-export.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/git-fast-export.md diff --git a/pages/common/git-fast-export.md b/pages/common/git-fast-export.md new file mode 100644 index 0000000000..ec9a09e99a --- /dev/null +++ b/pages/common/git-fast-export.md @@ -0,0 +1,24 @@ +# git fast-export + +> Exports the contents and history of a Git repository in a streamable, plain-text format. +> More information: . + +- 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 subdirectory’s history: + +`git fast-export --all -- {{path/to/directory}} > {{path/to/file}}`