Files
memoir/pages/git/remove-from-remote.md
2023-04-03 18:58:30 +02:00

256 B

Remove files from repository

How to remove files from the repository, without deleting them locally. Original SO

# File
git rm --cached file_to_remove.txt

# Dir
git rm --cached -r directory_to_remove