git-filter-repo
Verified for current stable LTS
Git Filter Repo Command: Extract Folder Keeping History
Use for extract folder keeping history with Git Filter Repo. Exact CLI syntax to extract folder keeping history using Git Filter Repo.
When to use this: Use for extract folder keeping history with Git Filter Repo.
Command Syntax
git filter-repo --path <path/to/folder> git filter-repo --path <path/to/folder> Command Breakdown
--path- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to extract folder keeping history using Git Filter Repo.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Git Filter Repo Command: Move Subfolder One Level Up
git filter-repo --path-rename <path/to/folder>/: Git Filter Repo Command: Remove Folder Keeping History git filter-repo --path <path/to/folder> --invert-paths Git Filter Repo Command: Replace Sensitive String In Files git filter-repo --replace-text <(echo '<find>==><replacement>') Cargo Add Command: Add Local Crate Dependency cargo add --path <path/to/crate_directory> Cargo Install Command: Install Package From Local Directory cargo install --path <path/to/package> Alternative Approaches
Alternative tools for similar operation intents.
Tar Command: Extract Files Matching A Pattern From An Archive File
tar xf <path/to/source.tar> --wildcards "<*.html>" 7z Command: Extract Archive Preserve Directory Structure 7z x <path/to/archive.7z> 7za Command: Extract Archive Preserving Original Structure 7za x <path/to/archive.7z> 7zr Command: Extract An Archive To Stdout 7zr x <path/to/archive.7z> -so Cpio Command: Extract Files From Archive Cpio Verbose cpio < <archive.cpio> -idv