Completely remove a file from a git repository with git forget-blob Completely remove a file from your git repository, including old commits, reflog and other references. Usage git forget-blob file-to-forget See more details at https://ownyourbits.com/2017/01/18/completely-remove-a-file-from-a-git-repository-with-git-forget-blob/