Skip to content

Instantly share code, notes, and snippets.

@banyan
Last active December 28, 2015 22:49
Show Gist options
  • Save banyan/7574810 to your computer and use it in GitHub Desktop.
Save banyan/7574810 to your computer and use it in GitHub Desktop.
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