git-rm
Verified for current stable LTS
Git Rm Command: Remove File From Index Keep Locally
Use for remove file from index keep locally with Git Rm. Exact CLI syntax to remove file from index keep locally using Git Rm.
When to use this: Use for remove file from index keep locally with Git Rm.
Command Syntax
git rm --cached <path/to/file> git rm --cached <path/to/file> Command Breakdown
--cached- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to remove file from index keep locally using Git Rm.
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 Rm Command: Reduce Repository Only Git Directory
git rm -r . Git Rm Command: Reduce Repository To Git Directory git rm -r . Git Rm Command: Remove Directory Recursively git rm -r <path/to/directory> Git Rm Command: Remove File From Repository And Filesystem git rm <path/to/file> Git Rm Command: Remove File From Repository Index Keep Local git rm --cached <path/to/file>