毎回gitコマンドを全部打つのが辛い人用のスクリプト

#!/bin/sh

FILE=$1
COMMENT=$2

if [ "$FILE" = "" ]; then
  echo "usage: this file"
  exit 1
fi

git add $FILE

if [ "$COMMENT" = "" ]; then
  git commit -m "none"
else
  git commit -m "$COMMENT"
fi

git push origin master