Skip to content

Instantly share code, notes, and snippets.

@midhunkrishna
Last active September 11, 2019 20:37
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 midhunkrishna/86985c3db9752f34d69f62cb76210af1 to your computer and use it in GitHub Desktop.
Save midhunkrishna/86985c3db9752f34d69f62cb76210af1 to your computer and use it in GitHub Desktop.
prepare commit hook
#!/bin/bash
if ! grep -q ci-run "$1" ; then
sed -i.bak -e "1s/^/[ci-skip] /" $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment