Skip to content

Instantly share code, notes, and snippets.

@doi-t
Created May 30, 2020 10:11
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 doi-t/7f9bc8493aa52d1271055a4c57c0c817 to your computer and use it in GitHub Desktop.
Save doi-t/7f9bc8493aa52d1271055a4c57c0c817 to your computer and use it in GitHub Desktop.
SCHEMA_FILE=path/to/schema/file.sql \
REPO=$(git rev-parse --show-toplevel); \
GIT_HASH=$(git rev-parse HEAD); \
schemalex "local-git://${REPO}?file=${SCHEMA_FILE}&commitish=${GIT_HASH}" ${REPO}/${SCHEMA_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment