← All notes
git ·
2026-03-16
Remove a file from git repo
Without deleting the file from the file system
git rm --cached <file>
Deleting the file from the filesystem as well
git rm <file>