Commit e5cdaed7 by 江名洋

refactor(commit): 改为提交所有改动

1 parent 001f4e43
#!/bin/bash
# 提交本地 upload 文件到远程仓库
# 提交本地所有改动到远程仓库
# 用法: bash commit_uploads.sh [commit message]
set -e
MSG="${1:-chore: update upload files $(date '+%Y-%m-%d %H:%M')}"
MSG="${1:-chore: update $(date '+%Y-%m-%d %H:%M')}"
echo "========================================="
echo " 1. 提交 uploads/ 文件"
echo " 1. 提交所有改动"
echo "========================================="
git add uploads/
git add -A
if git diff --cached --quiet; then
echo " 没有需要提交的变更,跳过"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!