Completely remove a file from a git repository with git forget-blob.md 562 B


Title: Completely remove a file from a git repository with git forget-blob Date: 2017-01-25 08:59:14 Categories: [vcs] tags: [git, gitlab]

Authors: sedlav

Be it by mistake or by a change of mind, sooner or later we all deal with the problem of making a git repository forget about a file.

We soon realize that git rm will not suffice, as git remembers that the file existed once in our history, and thus will keep a reference to it.

Link