跳到正文
TakoAPI
返回技能列表

git-essentials

由 arnarsson 提供

Git & GitHub
17.3k下载量由 clawskills.sh 提供
23星标
19浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Essential Git commands and workflows for version control.

描述

该技能的功能

Covers the core Git commands for version control: staging, committing, branching, merging, and syncing with remotes. Includes workflows for feature branches, hotfixes, and fork syncing, plus advanced operations like rebasing, stashing, and cherry-picking.

Having all essential commands in one reference eliminates switching between official docs, man pages, and Stack Overflow answers mid-task.

何时使用

  • Creating a feature branch and pushing it for code review
  • Undoing a mistaken commit before it reaches the remote
  • Syncing a forked repo with its upstream source
  • Finding which commit introduced a bug with git bisect
  • Cleaning up commit history with interactive rebase before merging

示例工作流

输入

User asks: how do I create a feature branch, commit changes, and push for review?

智能体
  1. 1

    Run git checkout -b feature/my-feature to create and switch to a new branch

  2. 2

    Edit files, then stage changes with git add .

  3. 3

    Commit with git commit -m 'Add my feature'

  4. 4

    Push the branch and set upstream with git push -u origin feature/my-feature

输出

Feature branch pushed to remote, ready for a pull request

安装

clawhub install arnarsson/git-essentials

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接