snippetbashTip
git merge-index — Run a merge program on files that need merging. More information: <https://git-scm.com/docs/git-merg
Viewed 0 times
commandrunfilescligit merge-indexmergeprogramthat
Problem
How to use the
git merge-index command: Run a merge program on files that need merging. More information: <https://git-scm.com/docs/git-merge-index>.Solution
git merge-index — Run a merge program on files that need merging. More information: <https://git-scm.com/docs/git-merge-index>.Merge all files needing resolution using the standard helper:
git merge-index git-merge-one-file -aMerge a specific file:
git merge-index git-merge-one-file -- {{path/to/file}}Merge multiple files, continuing on failures:
git merge-index -o git-merge-one-file -- {{path/to/file1 path/to/file2 ...}}Quietly merge all files with a custom program:
git merge-index -q {{merge-program}} -aInspect merge inputs for a file using
cat:git merge-index cat -- {{path}}Code Snippets
Merge all files needing resolution using the standard helper
git merge-index git-merge-one-file -aMerge a specific file
git merge-index git-merge-one-file -- {{path/to/file}}Merge multiple files, continuing on failures
git merge-index -o git-merge-one-file -- {{path/to/file1 path/to/file2 ...}}Quietly merge all files with a custom program
git merge-index -q {{merge-program}} -aInspect merge inputs for a file using `cat`
git merge-index cat -- {{path}}Context
tldr-pages: common/git merge-index
Revisions (0)
No revisions yet.