git-filter-branch
Verified for current stable LTS
Git Filter Branch Command: Delete Folder From History
Use for delete folder from history with Git Filter Branch. Exact CLI syntax to delete folder from history using Git Filter Branch.
When to use this: Use for delete folder from history with Git Filter Branch.
Command Syntax
git filter-branch --tree-filter 'rm -rf <folder>' HEAD git filter-branch --tree-filter 'rm -rf <folder>' HEAD Command Breakdown
--tree-filter- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to delete folder from history using Git Filter Branch.
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.