22 lines
215 B
Bash
22 lines
215 B
Bash
#!/bin/sh
|
|
what=.
|
|
message="auto-save"
|
|
|
|
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
|
|
|
|
|
|
|