返回顶部
g

ghGitHub CLI操作

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
3,768
下载量
免费
免费
5
收藏
概述
安装方式
版本历史

gh

GitHub CLI (gh)

概述

使用 gh 在终端中执行经过身份验证的 GitHub 操作。优先使用显式、幂等的命令,并向用户返回 URL。

快速检查

  • - 认证状态:
bash gh auth status
  • - 当前仓库上下文:
bash gh repo view --json nameWithOwner,url,defaultBranchRef

核心工作流

创建仓库(默认私有)

bash gh repo create OWNER/NAME --private --confirm --description ...

如果在本地仓库内运行,请使用 --source . --remote origin --push。

克隆/复刻

bash gh repo clone OWNER/NAME

bash
gh repo fork OWNER/NAME --clone

议题

  • - 列出:
bash gh issue list --limit 20
  • - 创建:
bash gh issue create --title ... --body ...
  • - 评论:
bash gh issue comment --body ...

拉取请求

  • - 从当前分支创建:
bash gh pr create --title ... --body ...
  • - 列出:
bash gh pr list --limit 20
  • - 查看:
bash gh pr view --web
  • - 合并(使用显式方法):
bash gh pr merge --merge

发布版本

bash gh release create vX.Y.Z --title vX.Y.Z --notes ...

安全提示

  • - 在执行破坏性操作(删除、强制推送)前,确认目标仓库/所有者。
  • 对于私有仓库,创建时确保设置 --private。
  • 在自动化中优先使用 --confirm 以避免交互式提示。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gh-1776338296 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gh-1776338296 技能

通过命令行安装

skillhub install gh-1776338296

下载

⬇ 下载 gh v0.1.0(免费)

文件大小: 1.53 KB | 发布时间: 2026-4-17 14:14

v0.1.0 最新 2026-4-17 14:14
Initial publish

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部