commands.sh

git merge-one-file

all

Resolve a single file merge after a trivial merge.

More info →

Examples (4)

Resolve a simple merge conflict for a file

git merge-one-file path/to/file

Use as a helper in merge-index for a file

Handle a binary file merge

git merge-one-file -p path/to/file

Apply after read-tree in a scripted merge

git read-tree -m branch1 branch2 && git merge-index git-merge-one-file path/to/file
made by @shridhargupta | data from tldr-pages