Create remove-from-remote.md

This commit is contained in:
Nicco 2023-04-03 18:58:30 +02:00 committed by GitHub
parent d8d96e7323
commit 2deaf804da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```