git-rm: add example (#21948)

This commit is contained in:
Managor
2026-04-09 14:58:57 +03:00
committed by GitHub
parent e8268ba0b5
commit 79655fd400
+4
View File
@@ -14,3 +14,7 @@
- Remove file from repository index but keep it untouched locally:
`git rm --cached {{path/to/file}}`
- Reduce the repository to only the `.git` directory:
`git rm -r .`