Git Remove File From Commit History 13 September 2023 write file that you want delete in .gitignore, then git rm --cached <file> commit