Видалити з репозиторію
або Ігнорування раніше закомміченого файлу
git rm --cached dir/filename.extgit status
On branch prod
Your branch is up to date with 'origin/prod'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: dir/filename.ext
git rm dir/filename.extLast updated