steps:
git rm -r --cached .env
git add .
git commit -m"remove env file"
git push
For further actions, you may consider blocking this person and/or reporting abuse
steps:
git rm -r --cached .env
git add .
git commit -m"remove env file"
git push
For further actions, you may consider blocking this person and/or reporting abuse
AIRabbit -
Vivesh -
0xFedev -
Tristan Elliott -
Top comments (1)
Unfortunately the steps you mention here are not enough to remove pushed credentials. Those steps remove them from the latest version of your branch but is it still possible to recover them from the git history.
I suggest you to have a look at GitHub Docs about it: docs.github.com/en/authentication/...