# 获取提交信息,若未提供则使用默认值 "update" commit_message="${1:-update}" # 执行 Git 命令 git add . git commit -m "$commit_message" git push