git中 commit和push一起做的shell脚本
2018-11-05 本文已影响1人
ElonYanJ
git add ./
if [ -z "$1" ];
then
git commit -m master
else
git commit -m "$1"
fi
git push
git add ./
if [ -z "$1" ];
then
git commit -m master
else
git commit -m "$1"
fi
git push