mirror of
https://github.com/cupcakearmy/memoir.git
synced 2026-05-21 19:55:30 +00:00
Create remove-from-remote.md
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# Remove files from repository
|
||||||
|
|
||||||
|
How to remove files from the repository, without deleting them locally. [Original SO](https://stackoverflow.com/a/1143800)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# File
|
||||||
|
git rm --cached file_to_remove.txt
|
||||||
|
|
||||||
|
# Dir
|
||||||
|
git rm --cached -r directory_to_remove
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user