Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RobyCigar/bcf8b60d8bdb2081c3690fe416fabaaf to your computer and use it in GitHub Desktop.
Save RobyCigar/bcf8b60d8bdb2081c3690fe416fabaaf 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
@RobyCigar
Copy link
Author

Fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment