Skip to content

Commit 583e416

Browse files
abersnazeclaude
andcommitted
docs: add rebase.conflict-resolver to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a9b7a51 commit 583e416

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,24 @@ options:
143143
``PyGitUp`` will show the hashes of the current commit (or the point
144144
where the rebase starts) and the target commit like ``git pull`` does.
145145

146+
- ``git-up.rebase.conflict-resolver [cmd]``: If set, ``PyGitUp`` will
147+
invoke this command when a rebase conflict occurs. The command should
148+
contain a ``{prompt}`` placeholder, which will be replaced with a
149+
shell-escaped prompt containing conflict context (branch names,
150+
conflicted files, and resolution steps). The command is expected to
151+
resolve all conflicts, stage the files, and run
152+
``git rebase --continue``. If it exits with code 0 and the rebase is
153+
complete, ``git up`` continues to the next branch. If it fails, the
154+
repo is left in the conflicted state for manual resolution.
155+
156+
Environment variables ``GITUP_BRANCH``, ``GITUP_TARGET``, and
157+
``GITUP_REPO_PATH`` are also set for the resolver process.
158+
159+
Examples::
160+
161+
git config git-up.rebase.conflict-resolver "claude -p {prompt}"
162+
git config git-up.rebase.conflict-resolver "aider --message {prompt}"
163+
146164
New in v1.0.0:
147165
~~~~~~~~~~~~~~
148166

0 commit comments

Comments
 (0)