Delete file from all commits

I uploaded a font file that I don't have to distribute to git hub a few updates back. I have a relatively inactive repository, and I have the ability to notify all my members if necessary. I have tried several solutions. I need to delete a file in my directory called Resources\Video\%font%.ttf, where %font%is the name of a simple, italic and bold version of the font. What commands do I use?

+4
source share
1 answer

In this case, you can use the Git Filter Branch with the option --tree-filter.

syntax git filter-branch --tree-filter <command> ...

git filter-branch --tree-filter 'rm -f Resources\Video\%font%.ttf' -- --all

Command Explanation:

<command>: Specify any shell command.

- -: Git , , .

- : .

. , .

, .

+12

Source: https://habr.com/ru/post/1626756/


All Articles