Add repo subcommand with create/add-collaborators/list-all/config; clean up SKILL.md

This commit is contained in:
lyn
2026-04-13 13:46:46 +00:00
parent 7c0b857a2f
commit f3c19ba6e2
3 changed files with 51 additions and 52 deletions

View File

@@ -33,23 +33,18 @@ Generate an access token for the current user.
{baseDir}/scripts/git-ctrl generate-access-token
```
### Create Repository
### Repository Operations
Create a new git repository on git.hangman-lab.top.
Manage repositories on git.hangman-lab.top via the `repo` subcommand:
```bash
{baseDir}/scripts/git-ctrl create-repo <repo-name>
{baseDir}/scripts/git-ctrl repo create <repo-name>
{baseDir}/scripts/git-ctrl repo add-collaborators --user <user> --repo <repo>
{baseDir}/scripts/git-ctrl repo list-all
{baseDir}/scripts/git-ctrl repo config --repo-path <path>
```
> **Note**: The repository will be created at `${AGENT_WORKSPACE}/${repo-name}` (default: `/root/.openclaw/workspace/workspace-mentor`)
### List Projects
List all repositories visible to the current user on git.hangman-lab.top in markdown table format.
```bash
{baseDir}/scripts/git-ctrl list-projs
```
> **Note**: `create` creates the repo at `${AGENT_WORKSPACE}/${repo-name}`
### Pull Request Operations
@@ -75,30 +70,6 @@ Link Keycloak account with Gitea (for OAuth binding).
{baseDir}/scripts/git-ctrl link-keycloak
```
### Add Repository Collaborator
Add a collaborator to a repository.
```bash
{baseDir}/scripts/git-ctrl repo-add-collaborators --user <user> --repo <repo>
```
### Repository Config
When you clone a repository from git.hangman-lab.top and are ready to develop, or after creating a new local repo with git init, run:
```bash
{baseDir}/scripts/git-ctrl repo-config --repo-path <path to your repo>
```
### List Projects
List all repositories visible to the current user on git.hangman-lab.top in markdown table format.
```bash
{baseDir}/scripts/git-ctrl list-projs
```
### External Login Control
Enable or disable local login on Gitea.
@@ -114,4 +85,4 @@ Reset password for the current user (reads username from secret-mgr).
```bash
{baseDir}/scripts/git-ctrl reset-password
```
```