ts-learnings/git-push.sh

14 lines
225 B
Bash
Raw Normal View History

2019-03-27 08:31:28 +08:00
#!/bin/bash
git add .
if [ "$1" = "" ]
then
echo "没有commit -m的输入请输入commit -m内容以[ENTER]结束:"
read msg
git commit -m "$msg"
git push
else
git commit -m "$1"
git push
fi