- Add create-repo script for creating new repositories on git.hangman-lab.top - Integrate create-repo into git-ctrl dispatcher - Update SKILL.md with new command documentation
1.9 KiB
name, description
| name | description |
|---|---|
| git-hangman-lab | Git operations for hangman-lab.top - manage accounts, tokens, repositories, and Gitea settings. |
⚠️ Note: All scripts must be executed via the
pcexectool.
Git Operations
Check Git Credentials
Verify git credentials are configured correctly.
{baseDir}/scripts/git-ctrl check-git-cred
Create Git Account
Create a new git account and configure access.
⚠️ Warning: Do not execute this command unless explicitly requested. If you don't have a git account, contact agent-resource-director or hangman to guide you through the process.
{baseDir}/scripts/git-ctrl create-git-account
Generate Access Token
Generate an access token for the current user.
{baseDir}/scripts/git-ctrl generate-access-token
Create Repository
Create a new git repository on git.hangman-lab.top.
{baseDir}/scripts/git-ctrl create-repo <repo-name>
Note
: The repository will be created at
${AGENT_WORKSPACE}/${repo-name}(default:/root/.openclaw/workspace/workspace-mentor)
Link Keycloak Account
Link Keycloak account with Gitea (for OAuth binding).
{baseDir}/scripts/git-ctrl link-keycloak
Add Repository Collaborator
Add a collaborator to a repository.
{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:
{baseDir}/scripts/git-ctrl repo-config --repo-path <path to your repo>
External Login Control
Enable or disable local login on Gitea.
{baseDir}/scripts/git-ctrl external-login-ctrl --enable
{baseDir}/scripts/git-ctrl external-login-ctrl --disable
Reset Password
Reset password for the current user (reads username from secret-mgr).
{baseDir}/scripts/git-ctrl reset-password