github
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub Repository Manager
GitHub仓库管理器
This skill manages GitHub repositories via SSH - cloning, pulling, and pushing code.
该技能通过SSH管理GitHub仓库——包括克隆、拉取和推送代码。
Account Details
账户详情
| Setting | Value |
|---|---|
| Username | |
| SSH Key | |
| Default Clone Location | |
| 设置项 | 值 |
|---|---|
| 用户名 | |
| SSH密钥 | |
| 默认克隆路径 | |
When to Use This Skill
何时使用该技能
- Cloning a repository from GitHub
- Pulling latest changes from a repo
- Pushing commits to GitHub
- Checking repo status
- Listing user's repositories
- 从GitHub克隆仓库
- 从仓库拉取最新变更
- 向GitHub推送提交
- 检查仓库状态
- 列出用户的仓库
What This Skill Does
该技能的功能
- Clone Repos: Downloads repositories via SSH
- Pull Updates: Fetches and merges latest changes
- Push Changes: Uploads commits to GitHub
- Smart Defaults: Assumes for bare repo names
yousufjoyian/
- 克隆仓库:通过SSH下载仓库
- 拉取更新:获取并合并最新变更
- 推送变更:将提交上传至GitHub
- 智能默认值:对于无所有者的仓库名,默认使用前缀
yousufjoyian/
How to Use
使用方法
Clone Your Own Repo
克隆个人仓库
Pull triclaudeClone my youtube-transcripts repoGet repo living-contractPull triclaudeClone my youtube-transcripts repoGet repo living-contractClone Someone Else's Repo
克隆第三方仓库
Clone anthropics/claude-codePull microsoft/vscodeClone anthropics/claude-codePull microsoft/vscodeUpdate Existing Repo
更新现有仓库
Update triclaude with latest changesPull latest on youtube-transcriptsUpdate triclaude with latest changesPull latest on youtube-transcriptsPush Changes
推送变更
Push my changes to triclaudePush my changes to triclaudeCommands Reference
命令参考
Clone a repo (yousufjoyian)
克隆个人仓库(yousufjoyian)
bash
git clone git@github.com:yousufjoyian/<repo>.git /home/yousuf/local_workspaces/<repo>bash
git clone git@github.com:yousufjoyian/<repo>.git /home/yousuf/local_workspaces/<repo>Clone third-party repo
克隆第三方仓库
bash
git clone git@github.com:<owner>/<repo>.git /home/yousuf/local_workspaces/<repo>bash
git clone git@github.com:<owner>/<repo>.git /home/yousuf/local_workspaces/<repo>Pull latest
拉取最新代码
bash
cd /home/yousuf/local_workspaces/<repo> && git pullbash
cd /home/yousuf/local_workspaces/<repo> && git pullPush changes
推送变更
bash
cd /home/yousuf/local_workspaces/<repo> && git pushbash
cd /home/yousuf/local_workspaces/<repo> && git pushCheck status
检查仓库状态
bash
cd /home/yousuf/local_workspaces/<repo> && git statusbash
cd /home/yousuf/local_workspaces/<repo> && git statusTest SSH connection
测试SSH连接
bash
ssh -T git@github.combash
ssh -T git@github.comWorkflow
工作流程
-
Parse repo name:
- →
triclaudeyousufjoyian/triclaude - →
anthropics/claude-codeanthropics/claude-code
-
Check if exists locally:
- If exists →
/home/yousuf/local_workspaces/<repo>/git pull - Otherwise →
git clone
- If
-
Execute and report:
- Show clone/pull output
- Report final path
-
解析仓库名:
- →
triclaudeyousufjoyian/triclaude - →
anthropics/claude-codeanthropics/claude-code
-
检查本地是否存在:
- 若已存在 → 执行
/home/yousuf/local_workspaces/<repo>/git pull - 否则 → 执行
git clone
- 若
-
执行并反馈:
- 显示克隆/拉取的输出信息
- 反馈最终路径
Trigger Words
触发词
| Phrase | Action |
|---|---|
| "pull", "clone", "get repo" | Clone or pull repo |
| "push", "upload" | Push commits |
| "github pull", "fetch from github" | Clone/pull |
| "update repo" | Git pull |
| 触发短语 | 对应操作 |
|---|---|
| "pull", "clone", "get repo" | 克隆或拉取仓库 |
| "push", "upload" | 推送提交 |
| "github pull", "fetch from github" | 克隆/拉取 |
| "update repo" | 执行Git拉取 |
Example Session
示例会话
User: "Pull triclaude"
Assistant:
Cloning yousufjoyian/triclaude...
git clone git@github.com:yousufjoyian/triclaude.git /home/yousuf/local_workspaces/triclaude
Cloning into '/home/yousuf/local_workspaces/triclaude'...
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (245/245), done.
Receiving objects: 100% (245/245), 1.2 MiB | 5.00 MiB/s, done.
Done: /home/yousuf/local_workspaces/triclaude/用户: "Pull triclaude"
助手:
Cloning yousufjoyian/triclaude...
git clone git@github.com:yousufjoyian/triclaude.git /home/yousuf/local_workspaces/triclaude
Cloning into '/home/yousuf/local_workspaces/triclaude'...
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (245/245), done.
Receiving objects: 100% (245/245), 1.2 MiB | 5.00 MiB/s, done.
Done: /home/yousuf/local_workspaces/triclaude/Related Skills
相关技能
| Skill | Purpose |
|---|---|
| Local commits with smart staging and message crafting |
Workflow: Use skill for staging and committing locally, then this skill for push/pull.
git-commit| 技能 | 用途 |
|---|---|
| 本地提交,包含智能暂存和提交消息生成功能 |
工作流:先使用技能进行本地暂存和提交,再使用本技能进行推送/拉取操作。
git-commitTroubleshooting
故障排查
| Issue | Solution |
|---|---|
| Permission denied (publickey) | Run |
| Repository not found | Check repo name/owner spelling |
| Already exists | Use |
| Merge conflicts on pull | Resolve conflicts manually or stash changes |
| 问题 | 解决方法 |
|---|---|
| Permission denied (publickey) | 执行 |
| Repository not found | 检查仓库名/所有者的拼写 |
| Already exists | 使用 |
| Merge conflicts on pull | 手动解决冲突或暂存变更 |
SSH Setup (Already Configured)
SSH配置(已完成)
Key location:
~/.ssh/github_ed25519If SSH agent needs the key:
bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/github_ed25519Verify connection:
bash
ssh -T git@github.com密钥路径:
~/.ssh/github_ed25519若SSH代理需要加载密钥:
bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/github_ed25519验证连接:
bash
ssh -T git@github.comExpected: Hi yousufjoyian! You've successfully authenticated...
预期输出:Hi yousufjoyian! You've successfully authenticated...
undefinedundefined