Compare commits

..

2 Commits

Author SHA1 Message Date
2a14b71435
Update _meta.json 2023-04-03 18:58:52 +02:00
2deaf804da
Create remove-from-remote.md 2023-04-03 18:58:30 +02:00
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{
"index": "Intro",
"cli": "CLI",
"git": "Git",
"dev_ops": "Dev Ops"
}

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