Skip to content

Instantly share code, notes, and snippets.

@shiplunc
Last active August 29, 2015 14:18
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 shiplunc/98442428d7d7f0e6cad3 to your computer and use it in GitHub Desktop.
Save shiplunc/98442428d7d7f0e6cad3 to your computer and use it in GitHub Desktop.
Find incremental .sql scripts from git
#!/bin/bash
git log --stat --reverse --since='2014-07-05 00:00:00' -- mysql-scripts | grep -E 'mysql-scripts\S+' -o | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment