跳到正文
TakoAPI
返回技能列表

doro-git-essentials

由 a2mus 提供

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

简介

Essential Git commands and workflows for version control, branching, and collaboration.

描述

该技能的功能

A reference for core Git commands covering setup, staging, branching, merging, rebasing, and remote operations. Includes common workflows like feature branches, hotfixes, and fork syncing. Also covers advanced topics such as cherry-pick, submodules, and bisect.

Consolidates the most-used Git commands and multi-step workflows in one place, reducing the need to search scattered documentation.

何时使用

  • Creating a feature branch and opening a pull request
  • Stashing in-progress changes before switching tasks
  • Finding the commit that introduced a bug with git bisect
  • Syncing a forked repository with the upstream source
  • Recovering a deleted branch using reflog

示例工作流

输入

User asks: How do I create a feature branch, make changes, and push it for review?

智能体
  1. 1

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

  2. 2

    Stage changes with git add . and commit with git commit -m "Add new feature"

  3. 3

    Push the branch to the remote with git push -u origin feature/new-feature

  4. 4

    After the pull request is merged, switch back with git checkout main and pull

  5. 5

    Delete the local branch with git branch -d feature/new-feature

输出

Feature branch created, pushed to remote, and cleaned up after merge

安装

clawhub install a2mus/doro-git-essentials

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

链接