# Git代码推送脚本 - 快速执行 # Git配置 $ENV_XLSX = "C:\work\data\env.xlsx" $GIT_SERVER = "git.alicorns.co.jp" $GIT_USER = "aitest" $GIT_PASSWORD = "Aitest123456" # 技能路径 $SKILL1 = "C:\Users\ALC\.openclaw\skills\office-file-handler" $SKILL2 = "~\.openclaw\skills\dingtalk-media-sender" Write-Host "=== Git代码推送 ===" -ForegroundColor Green Write-Host "Git服务器: $GIT_SERVER" -ForegroundColor Cyan Write-Host "用户: $GIT_USER" -ForegroundColor Cyan Write-Host "" # 推送office-file-handler Write-Host "=== 推送office-file-handler ===" -ForegroundColor Yellow Set-Location $SKILL1 Write-Host "远程仓库: origin (https://$GIT_USER@$GIT_SERVER/office-file-handler.git)" git push -u origin master if ($?) { Write-Host "✓ office-file-handler推送成功" -ForegroundColor Green } else { Write-Host "✗ office-file-handler推送失败" -ForegroundColor Red } Write-Host "" # 推送dingtalk-media-sender Write-Host "=== 推送dingtalk-media-sender ===" -ForegroundColor Yellow Set-Location $SKILL2 Write-Host "远程仓库: origin (https://$GIT_USER@$GIT_SERVER/dingtalk-media-sender.git)" git push -u origin master if ($?) { Write-Host "✓ dingtalk-media-sender推送成功" -ForegroundColor Green } else { Write-Host "✗ dingtalk-media-sender推送失败" -ForegroundColor Red } Write-Host "" Write-Host "=== 推送完成 ===" -ForegroundColor Green Write-Host "如果推送失败,请确认远程仓库是否已在Git服务器上创建。" -ForegroundColor Yellow