git-merge-index
Run merge program for unmerged files
TLDR
Run merge for unmerged files
$ git merge-index [merge-program] -a
Merge specific file$ git merge-index [merge-program] [file]
SYNOPSIS
git merge-index [options] merge-program files...
DESCRIPTION
git merge-index runs a specified merge program for each file needing merging. This low-level plumbing command is part of Git's internal merge machinery, invoked during three-way merge operations to handle unmerged files in the index.The command passes file information (including base, ours, and theirs versions with their object IDs) to the specified merge program. Most users never need to call this directly, as `git merge` handles it automatically. It is exposed for custom merge workflows and understanding Git internals.
PARAMETERS
-a
Run on all unmerged entries.-o
Don't stop on error.-q
Quiet mode.
INSTALL
sudo apt install git
sudo dnf install git
sudo pacman -S git
sudo apk add git
sudo zypper install git
brew install git
nix profile install nixpkgs#git
SEE ALSO
git-merge(1), git-mergetool(1)
