#!/bin/sh what=. message="save only" if [ "$2" ] then what=$2; fi if [ "$1" ] then message=$1; fi echo "commit with messge " $message " on directory:" $what git commit -m="$message" $what git push