man > git-merge-one-file(1)

TLDR: git-merge-one-file (tldr-pages)

Resolve a single file merge after a trivial merge.

  • 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
    git merge-index git-merge-one-file {{path/to/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}}
GIT-MERGE-ONE-FIL(1)                         Git Manual                         GIT-MERGE-ONE-FIL(1)



NAME
       git-merge-one-file - The standard helper program to use with git-merge-index

SYNOPSIS
       git merge-one-file


DESCRIPTION
       This is the standard helper program to use with git merge-index to resolve a merge after the
       trivial merge done with git read-tree -m.

GIT
       Part of the git(1) suite



Git 2.34.1                                   02/26/2026                         GIT-MERGE-ONE-FIL(1)

Generated by phpman v4.9.22-1-g1b0fcb4 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-05 09:09 @216.73.216.52
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!