Skip to content

Instantly share code, notes, and snippets.

@msveden
Last active April 13, 2018 12:22
Show Gist options
  • Save msveden/ec7caa532dbb09f09e91e5b3c5c33764 to your computer and use it in GitHub Desktop.
Save msveden/ec7caa532dbb09f09e91e5b3c5c33764 to your computer and use it in GitHub Desktop.
Testing post-receive hook without pushing changes

Find the last two commits by:

git log -2 --format=oneline --reverse

Then run the hook by:

echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment