Forked from gjerokrsteski/remove env file from git forever
Created
January 18, 2021 21:36
-
-
Save paul-vd/604b87a2f502ce1a039c8bf52807298f to your computer and use it in GitHub Desktop.
remove env file from git history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '.env' >> .gitignore | |
git rm -r --cached .env | |
git add .gitignore | |
git commit -m 'untracking .env' | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remove from history: