Instantly share code, notes, and snippets.

@banyan /post-commit
Last active Dec 28, 2015

Embed
What would you like to do?
systemsetup -getusingnetworktime | grep On >/dev/null 2>&1
if [ $? -ne 0 ]; then
systemsetup -setusingnetworktime on
echo "Hi, bring back to now from a future."
sleep 1
git commit -C HEAD --amend --date="`LANG=en date`"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment