Use SSH URL for Git remote in Gitea skill
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ description: Gitea repository management via REST API. Use when user explicitly
|
||||
- **API Base**: `https://gitea.server10086.icu/api/v1`
|
||||
- **Default Account**: `admin`
|
||||
- **Auth Header**: `Authorization: token $GITEA_TOKEN`
|
||||
- **Git Remote URL**: `git@gitea.server10086.icu:admin/repo-name.git` (SSH)
|
||||
|
||||
**Always verify GITEA_TOKEN exists before any operation:**
|
||||
```bash
|
||||
@@ -66,7 +67,7 @@ curl -X POST "https://gitea.server10086.icu/api/v1/admin/repos" \
|
||||
git init
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
git remote add origin "https://gitea.server10086.icu/admin/$REPO_NAME.git"
|
||||
git remote add origin "git@gitea.server10086.icu:admin/$REPO_NAME.git"
|
||||
git push -u origin main
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user