git:conflicts
БесплатноЗапускает вложенные скриптыНе проверенResolve git merge conflicts from a rebase, merge, or cherry-pick. Use also for a request to finish the operation and push, such as "fix conflicts and push".
от bendrucker★ 18 звёзд на GitHubОб этом скилле
Git Conflicts
Status
!bun "${CLAUDE_PLUGIN_ROOT}/skills/conflicts/scripts/status.ts"
Context
!bun "${CLAUDE_PLUGIN_ROOT}/skills/conflicts/scripts/context.ts"
Upstream
!bun "${CLAUDE_PLUGIN_ROOT}/skills/conflicts/scripts/upstream.ts"
Resolving
Resolve each conflicted file, then git add it.
- Regenerate a generated file, such as a lockfile or a build artifact, from its source. Follow the project's
CLAUDE.mdfor lockfile guidance. - When repeated rebases hit the same conflict, references/rerere.md records a resolution and replays it.
Resolving is done when every conflicted file is staged and git diff --cached --check reports no conflict markers. Leave the commit, the continue, and the push to the user.
Completing the Operation
Take the operation past the staged resolution only when the user asks for it: the --push argument, its alias push, or a request such as "fix conflicts and push". Then:
- When no rebase, merge, or cherry-pick is in progress and upstream has diverged, run
git merge origin/<default-branch>to produce the conflicts. A clean merge goes straight to the push. - Before continuing, set aside the dirty files unrelated to the resolution, which
git status --porcelainlists. The continue then commits only the resolution. Rungit stash push -m "conflicts: <branch>" -- <files>for all of them at once, then record that entry's SHA fromgit stash list --format='%H %gs'. When that stash fails, which the sandbox causes by blocking the unlink of a protected file such as.mcp.json, stash the files one at a time and skip the failures. Hide each file that cannot be stashed withgit update-index --assume-unchanged <file>. - Continue the operation and run
git push, with--force-with-leaseafter a rebase, then restore the files you set aside:git update-index --no-assume-unchanged <file>for each hidden file, andgit stash apply <sha>thengit stash drop <sha>for a stash you created. Restore by the SHA you recorded, because the stash stack is shared with every other worktree on the repo and the top entry may belong to another session.
The operation is done when git reports no operation in progress, the branch is pushed, and every file you set aside is back in the working tree.
Установить git:conflicts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditGrepGlobAskUserQuestionBash(git status:*)Bash(git diff:*)Bash(git show :*:*)Bash(git add:*)Bash(git log:*)Bash(git rebase:*)Bash(git merge:*)Bash(git cherry-pick:*)Bash(git rerere:*)Bash(git stash:*)Bash(git update-index:*)Bash(git fetch:*)Bash(git push:*)Bash(bun ${CLAUDE_PLUGIN_ROOT}/skills/conflicts/scripts/*)Bash(bun "${CLAUDE_PLUGIN_ROOT}/skills/conflicts/scripts/*)Вложенные файлы
FAQ
Что делает скилл git:conflicts?
Resolve git merge conflicts from a rebase, merge, or cherry-pick. Use also for a request to finish the operation and push, such as "fix conflicts and push".
Как установить скилл git:conflicts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git:conflicts запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic