Skip to content

Instantly share code, notes, and snippets.

@gmarokov
Last active October 22, 2019 06:51
Show Gist options
  • Save gmarokov/44ee43fe0377f87dc25bd62aa8223347 to your computer and use it in GitHub Desktop.
Save gmarokov/44ee43fe0377f87dc25bd62aa8223347 to your computer and use it in GitHub Desktop.
ASP.NET post merge git hook for displaying available migrations
#!/usr/bin/env bash
changed_files="$(git diff ORIG_HEAD HEAD --name-only | grep "/Migrations/")" [[ ! -z $changed_files ]] && echo -e "\e[91mIncoming Migrations!\e[39m $changed_files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment