Files
workspace/create-git-repo.ps1
aitest 15c4480db1 Add OpenClaw workspace configuration and tools
- Add agent configuration files (AGENTS.md, USER.md, IDENTITY.md, SOUL.md)
- Add git configuration and skills management scripts
- Add frontend/backend analysis tools and reports
- Add DingTalk media sender utilities and documentation
- Fix OpenClaw runtime environment (Node.js and Python)
- Configure git remotes and push scripts
2026-03-05 13:56:59 +09:00

30 lines
982 B
PowerShell

# Git仓库创建脚本
$ENV_XLSX = "C:\work\data\env.xlsx"
$GIT_SERVER = "git.alicorns.co.jp"
$GIT_USER = "aitest"
$GIT_PASSWORD = "Aitest123456"
# 尝试不同的Git创建方法
Write-Host "=== 尝试创建Git远程仓库 ===" -ForegroundColor Green
Write-Host ""
# 方法1: 尝试通过SSH命令创建
Write-Host "方法1: SSH创建尝试" -ForegroundColor Yellow
$result1 = ssh $GIT_USER@$GIT_SERVER "git init --bare /var/git/office-file-handler.git" 2>&1
Write-Host "结果: $result1"
Write-Host ""
# 方法2: 尝试通过git push创建 (如果服务器支持)
Write-Host "方法2: 通过推送创建" -ForegroundColor Yellow
cd "C:\Users\ALC\.openclaw\skills\office-file-handler"
$result2 = git push -u origin master 2>&1
Write-Host "结果: $result2"
Write-Host ""
# 方法3: 检查Git服务器类型
Write-Host "方法3: 检查服务器信息" -ForegroundColor Yellow
$result3 = curl -I https://$GIT_SERVER/ 2>&1 | Select-Object -First 5
Write-Host "结果: $result3"