Auto-sync: 2025-12-29 19:49:29

This commit is contained in:
卡若
2025-12-29 19:49:29 +08:00
parent d415f47f1e
commit 7994e19cda
2 changed files with 265 additions and 0 deletions

24
auto_sync.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# 自动同步脚本:添加所有更改 -> 提交 -> 推送到 soul-content 分支
echo "⏳ 开始同步到 GitHub (soul-content)..."
# 确保在项目根目录
cd "$(dirname "$0")"
# 添加所有更改
git add .
# 检查是否有更改需要提交
if git diff-index --quiet HEAD --; then
echo "✅ 本地没有需要提交的更改。"
else
# 提交更改,包含时间戳
git commit -m "Auto-sync: $(date '+%Y-%m-%d %H:%M:%S')"
echo "✅ 已提交本地更改。"
fi
# 推送到远程
git push origin soul-content
echo "🎉 同步完成!"
echo "GitHub 地址: https://github.com/fnvtk/Mycontent/tree/soul-content"