Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FarisMarouane/852fcc1ff2075b36959b49cef9bf088d to your computer and use it in GitHub Desktop.
Save FarisMarouane/852fcc1ff2075b36959b49cef9bf088d to your computer and use it in GitHub Desktop.
remove env file from git history
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