I am removing .env file from local git history.
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
To push this to remote,
git push --force
I am removing .env file from local git history.
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
To push this to remote,
git push --force