2.8 KiB
2.8 KiB
Gitea Configuration
Server Information
- Gitea URL: http://192.168.120.110:4000/
- Repository URL: http://192.168.120.110:4000/xiaohei/openclaw-workspace
- SSH Host: 192.168.120.110
- SSH Port: 4022
- API Base: http://192.168.120.110:4000/api/v1
User Credentials
- Username: xiaohei
- Full Name: 小黑
- Email: xiaohei@foshanhuiya.com
- Password: n4wwxyv6
- Access Token: 6699d6170be2d53b09517bff89ac27ecece2784e
SSH Configuration
SSH Key
- Key Type: ED25519
- Private Key: ~/.ssh/id_ed25519
- Public Key: ~/.ssh/id_ed25519.pub
- Gitea Key ID: 4
- Gitea Key Name: OpenClaw-MacBook
- Fingerprint: SHA256:HT3VEaNgK1k2a3XplAMJ0WnL2u+K5qsHWcs2k1yDCHw
~/.ssh/config
Host 192.168.120.110
HostName 192.168.120.110
Port 4022
User git
IdentityFile ~/.ssh/id_ed25519
Git Global Configuration
[user]
name = xiaohei
email = xiaohei@foshanhuiya.com
Repository Information
Remote Repository
- Owner: xiaohei
- Repository Name: openclaw-workspace
- Private: No
- SSH URL: git@192.168.120.110:xiaohei/openclaw-workspace.git
- HTTP URL: http://192.168.120.110:4000/xiaohei/openclaw-workspace.git
- Default Branch: main
Local Repository
- Location: /Users/hexcode/.openclaw/workspace
- Remote: origin
- Current Branch: main
- Status: Tracking origin/main
Initial Commit
- Commit Hash:
3f93dbb - Message: Initial commit: OpenClaw workspace setup
- Files: 13 files, 833 insertions
Gitignore
Current .gitignore includes:
# OpenClaw
.DS_Store
.venv/
__pycache__/
*.pyc
# Node
node_modules/
npm-debug.log
# Logs
*.log
# IDE
.vscode/
.idea/
*.swp
*.swo
API Usage Examples
Create New Repository
curl -X POST "http://192.168.120.110:4000/api/v1/user/repos" \
-H "Authorization: token 6699d6170be2d53b09517bff89ac27ecece2784e" \
-H "Content-Type: application/json" \
-d '{
"name":"new-repo",
"description":"New repository",
"private":false,
"auto_init":false
}'
List SSH Keys
curl -X GET "http://192.168.120.110:4000/api/v1/user/keys" \
-H "Authorization: token 6699d6170be2d53b09517bff89ac27ecece2784e"
Delete SSH Key
curl -X DELETE "http://192.168.120.110:4000/api/v1/user/keys/4" \
-H "Authorization: token 6699d6170be2d53b09517bff89ac27ecece2784e"
Common Workflows
Create and Push New Project
cd /path/to/project
git init
git add .
git commit -m "Initial commit"
git remote add origin git@192.168.120.110:xiaohei/repo-name.git
git push -u origin main
Clone Existing Repository
git clone git@192.168.120.110:xiaohei/repo-name.git
Push Changes
git add .
git commit -m "Update description"
git push
Last Updated
- Date: 2026-03-09
- Updated by: OpenClaw workspace setup