ts-learnings/git-push.sh
2019-03-27 08:31:28 +08:00

14 lines
225 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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