Skip to content

Instantly share code, notes, and snippets.

@HongKilDong
Last active August 20, 2021 07:34
Show Gist options
  • Save HongKilDong/19440ab1e202e6aeea08ba5b2a396067 to your computer and use it in GitHub Desktop.
Save HongKilDong/19440ab1e202e6aeea08ba5b2a396067 to your computer and use it in GitHub Desktop.
function to fetch merge build and push for nfc
function dbsy() {( set -e
git fetch && git merge --no-edit origin/$1
if git diff --name-only HEAD@{0} HEAD@{1} | grep -q 'composer.lock'; then
php73 composer.phar install
else
php73 bin/console cache:clear
fi
php73 bin/console doctrine:migrations:migrate --no-interaction -vv
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment