Возможный дубликат:
Как очистить огромный файл от фиксации истории в Git?
Я сделал глупую вещь. Представьте, что я сделал файл размером 100 Мбайт. Затем я вижу это и удаляю этот файл и фиксирую его снова. Это обычная процедура для удаления файла.
Но теперь побочным эффектом является то, что моя история тяжелая, потому что она сохранила этот большой файл (я считаю, что именно поэтому он тяжелый). Я использую только локальный git, поэтому я не синхронизируюсь на любом сервере.
Как я могу окончательно удалить этот файл и сохранить дисковое пространство?