git fast-export
Export 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 >
- Export a specific branch only:
git fast-export
- Export with
progressstatements everynobjects (for showing progress duringgit fast-import):
git fast-export --progress --all >
- Export only a specific subdirectory's history:
git fast-export --all -- >
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
