Skip to content

Instantly share code, notes, and snippets.

@cdracars
Created July 14, 2022 21:21
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 cdracars/75e404998d48c04b9953141100844391 to your computer and use it in GitHub Desktop.
Save cdracars/75e404998d48c04b9953141100844391 to your computer and use it in GitHub Desktop.
Pre-Commit Generate .env.example file that is sanitized.
#!/bin/sh
# Generate example env file from current env file.
sed 's/=.*/=/' .env > .env.example
git add .env.example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment