Step 1 - Run 'git rm -r --cached .env' Step 2 - Run 'git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD' Step 3 - Run 'git push --force'