Skip to content

Instantly share code, notes, and snippets.

@Nkzn
Created March 17, 2014 13:02
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 Nkzn/9598795 to your computer and use it in GitHub Desktop.
Save Nkzn/9598795 to your computer and use it in GitHub Desktop.
酔っ払いながらコミットするときは、このコマンドだけ使えば後で見分けやすいのでは的なアレ
#!/bin/sh
PREFIX="I'm drunk now"
MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`"
if [ $# -eq 0 ]
then
git add -u
git commit -m "${MESSAGE}"
echo 'You should review this commit later, with sober senses.'
else
echo 'You should be drunk more!!!!'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment