Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-07 00:19:24 +00:00
parent 3e6fa5fca1
commit 4102fec4f8
26 changed files with 610 additions and 8 deletions

29
tldr/git-fast-export Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`