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
This commit is contained in:
51
setup-git-remote.ps1
Normal file
51
setup-git-remote.ps1
Normal file
@@ -0,0 +1,51 @@
|
||||
# Git远程仓库配置脚本
|
||||
|
||||
# Git配置信息
|
||||
$GIT_SERVER = "git.alicorns.co.jp"
|
||||
$GIT_USER = "aitest"
|
||||
$GIT_PASSWORD = "Aitest123456"
|
||||
|
||||
# 远程仓库URL(两种格式)
|
||||
$SSH_URL = "git@$GIT_SERVER:office-file-handler.git"
|
||||
$HTTPS_URL = "https://$GIT_USER`:$GIT_PASSWORD@git.alicorns.co.jp/office-file-handler.git"
|
||||
|
||||
Write-Host "=== Git远程仓库配置 ==="
|
||||
Write-Host ""
|
||||
Write-Host "Git服务器: $GIT_SERVER"
|
||||
Write-Host "用户名: $GIT_USER"
|
||||
Write-Host ""
|
||||
Write-Host "SSH URL: $SSH_URL"
|
||||
Write-Host "HTTPS URL: $HTTPS_URL"
|
||||
Write-Host ""
|
||||
Write-Host "选择连接方式:"
|
||||
Write-Host "1. SSH (推荐)"
|
||||
Write-Host "2. HTTPS"
|
||||
Write-Host "输入选择 (1/2): "
|
||||
|
||||
$choice = Read-Host
|
||||
|
||||
if ($choice -eq "1") {
|
||||
$REMOTE_URL = $SSH_URL
|
||||
Write-Host "使用SSH方式"
|
||||
} else {
|
||||
$REMOTE_URL = $HTTPS_URL
|
||||
Write-Host "使用HTTPS方式"
|
||||
}
|
||||
|
||||
# 为两个技能添加远程仓库
|
||||
Write-Host ""
|
||||
Write-Host "=== 配置office-file-handler远程仓库 ==="
|
||||
Set-Location "C:\Users\ALC\.openclaw\skills\office-file-handler"
|
||||
git remote add origin $REMOTE_URL.Replace("office-file-handler", "office-file-handler")
|
||||
Write-Host "远程仓库已添加"
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "=== 配置dingtalk-media-sender远程仓库 ==="
|
||||
Set-Location "~\.openclaw\skills\dingtalk-media-sender"
|
||||
git remote add origin $REMOTE_URL.Replace("office-file-handler", "dingtalk-media-sender")
|
||||
Write-Host "远程仓库已添加"
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "=== 推送代码到远程 ==="
|
||||
Write-Host "请确认远程仓库是否已在Git服务器上创建。"
|
||||
Write-Host "如果需要先创建仓库,请联系Git管理员或手动创建。"
|
||||
Reference in New Issue
Block a user