什麼是 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