Skip to content

Instantly share code, notes, and snippets.

@husnuljahneer
Created March 6, 2022 06:43
Show Gist options
  • Save husnuljahneer/e9fd8833b54079c7953f82847cc33c88 to your computer and use it in GitHub Desktop.
Save husnuljahneer/e9fd8833b54079c7953f82847cc33c88 to your computer and use it in GitHub Desktop.
remove env file from git forever
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