什么是 git?
使用此技能进行复杂的 git 操作,包括变基、合并冲突解决、挑选、分支管理或存储库考古。在提及 git rebase、合并冲突、cherry-pick、git 历史记录、分支清理、git bisect、工作树、强制推送或复杂 git 操作时激活。 来源:hyperb1iss/hyperskills。
使用此技能进行复杂的 git 操作,包括变基、合并冲突解决、挑选、分支管理或存储库考古。在提及 git rebase、合并冲突、cherry-pick、git 历史记录、分支清理、git bisect、工作树、强制推送或复杂 git 操作时激活。
通过命令行快速安装 git AI 技能到你的开发环境
来源:hyperb1iss/hyperskills。
| Lock file conflict (pnpm-lock, Cargo.lock, etc.) | Never merge manually. Checkout theirs, regenerate. | | SOPS encrypted file | Checkout theirs, run sops updatekeys, re-add. | | Simple content conflict | Resolve manually, prefer smallest diff. | | Large structural conflict | Consider --ours/--theirs + manual reapply of the smaller side. |
| Feature branch behind main | git rebase origin/main | | Shared branch (others have it checked out) | Never rebase. Merge only. | | Cleaning up messy commits before PR | git rebase -i with squash/fixup | | Already pushed and others pulled | Never rebase. Use git revert instead. |
| Wrong commit message (not pushed) | git commit --amend | | Last commit was wrong (keep changes staged) | git reset --soft HEAD1 | | Last commit was wrong (keep changes unstaged) | git reset HEAD1 | | Already pushed bad commit | git revert (creates new commit) | | Need to recover something lost | git reflog then git checkout HEAD@{N} |
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/hyperb1iss/hyperskills --skill git使用此技能进行复杂的 git 操作,包括变基、合并冲突解决、挑选、分支管理或存储库考古。在提及 git rebase、合并冲突、cherry-pick、git 历史记录、分支清理、git bisect、工作树、强制推送或复杂 git 操作时激活。 来源:hyperb1iss/hyperskills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hyperb1iss/hyperskills --skill git 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/hyperb1iss/hyperskills