iBook/push.sh

14 lines
287 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
# push.sh
# -----------
# 用途一键提交并推送当前目录下所有git更改。
# 用法:
# ./push.sh "commit message"
# # 若不传参数默认commit message为'update'
#!/bin/bash
git add .
msg="${1:-'update'}"
git commit -m "$msg"
git push origin main