Skip to content

Instantly share code, notes, and snippets.

@nitrocode
Created September 16, 2018 16:45
Show Gist options
  • Select an option

  • Save nitrocode/4cd9bbc2fbf3262c8ba1eec9f49a1e24 to your computer and use it in GitHub Desktop.

Select an option

Save nitrocode/4cd9bbc2fbf3262c8ba1eec9f49a1e24 to your computer and use it in GitHub Desktop.
#!/bin/sh
filepath=vault/prod/mysql/prod/dbcore-db-read/roles/read_only.sql
diff \
<(git show origin/master:$filepath | tr ' ' '\n') \
<(git show origin/branch-name:$filepath | tr ' ' '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment