mirror of
https://github.com/gnu4cn/ts-learnings.git
synced 2024-12-26 04:41:37 +08:00
14 lines
225 B
Bash
Executable File
14 lines
225 B
Bash
Executable File
#!/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
|