digital-garden/dev/git/Удаление .DS_Store из Git репозитория.md
Struchkov Mark a0db2bc364
All checks were successful
continuous-integration/drone/push Build is passing
Исправление даты
2024-09-08 16:59:32 +03:00

1014 B

tags date parents zero-link article
maturity/🌳
2023-08-31
../../meta/zero/00 Снипеты для Git
../../meta/zero/00 Разработка
https://struchkov.dev/blog/ru/remove-dsstore-git/

Симптомы: Есть не зафиксированный файл, который мешает гиту. Файл называется .DS_Store.

Чтобы удалить этот файл нужно выполнить следующие команды:

find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
git rm --cached .DS_Store
git add .
git commit -m "Remove .DS_Store from current directory"

[!WARNING] Терминал в Idea Команды необходимо выполнять из обычного родного терминала. Если выполнять из терминала Idea, то они не сработают.