fix: release create default target_commitish to master
GitLink default branch is master, not main. Some repos don’t have main.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
gitlink-cli
The official GitLink(确实开源) CLI tool — built for humans and AI Agents. Supports macOS, Linux, and Windows. Covers repository management, issue tracking, pull requests, CI/CD, and AI-powered workflows, with 40+ commands and 11 AI Agent Skills.
Install · AI Agent Skills · Auth · Commands · Contributing
Why gitlink-cli?
npmin one commandnpm installFeatures
Installation & Quick Start
Requirements
Before you start, make sure you have:
npm/npx) — for npm installationQuick Start (Human Users)
Install
Choose one of the following methods:
Option 1 — From npm (recommended):
Option 2 — From source:
Requires Go 1.21+.
Configure & Use
Quick Start (AI Agent)
Step 1 — Install
Step 2 — Configure
Step 3 — Login
Step 4 — Verify
使用示例
仓库操作
Issue 管理
Pull Request
发布管理
搜索
Raw API
Shortcuts 未覆盖的接口可通过 Raw API 直接调用:
全局参数
--owner--owner Gitlink--repo--repo forgeplus--format--format json--debug--debug自动上下文解析:在 git 仓库目录下,
--owner和--repo会自动从git remote origin解析。分支约定
gitlink-cli 支持 GitHub 和 GitLink 的代码双向同步:
mainmaster本地 push 到 GitLink:
AI Agent Skills
skills/目录包含 11 个 Claude Code Agent Skill 文件,支持 AI 自动化操作 GitLink 平台。详见 skills/README.md
gitlink-sharedgitlink-repogitlink-issuegitlink-prgitlink-branchgitlink-releasegitlink-orggitlink-cigitlink-searchgitlink-usergitlink-workflow项目结构
文档
常见问题
Q: 如何在脚本中使用 gitlink-cli?
A: 使用
--format json获取结构化输出:Q: 如何自动解析 owner/repo?
A: 在 git 仓库目录下运行命令,CLI 会自动从
git remote origin解析:Q: Token 过期了怎么办?
A: 重新登录:
Q: Windows 上凭证存储在哪里?
A: gitlink-cli 使用 Windows Credential Manager 安全存储 Token。如果 Credential Manager 不可用,会自动降级到文件存储 (
~/.config/gitlink-cli/credentials)。Q: 如何查看完整的 API 参考?
A: 查看 skills/gitlink-shared/REFERENCE.md
相关项目
许可证
Apache License 2.0