All Projects → jonatanpedersen → git-json-merge

jonatanpedersen / git-json-merge

Licence: MIT license
A git merge driver that use xdiff to automatically resolve merge conflicts in json files. This project was inspired by git-po-merge.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to git-json-merge

minicon
Minimization of the filesystem for containers
Stars: ✭ 70 (-18.6%)
Mutual labels:  merge
gitlab-merger-bot
GitLab Merger Bot
Stars: ✭ 23 (-73.26%)
Mutual labels:  merge
Nbdime
Tools for diffing and merging of Jupyter notebooks.
Stars: ✭ 2,135 (+2382.56%)
Mutual labels:  merge
excel-merge
A PHP library to merge two or more Excel files into one
Stars: ✭ 26 (-69.77%)
Mutual labels:  merge
HacktoberFest-HelloWorld
All your PRs will be merged !! 😊
Stars: ✭ 24 (-72.09%)
Mutual labels:  merge
markdown-to-document
A Markdown CLI to easily generate HTML documents from Markdown files
Stars: ✭ 28 (-67.44%)
Mutual labels:  merge
Tools Merge Image PointCloud
Project the PointCloud to the image & Generate the LiDAR PointCloud with color.
Stars: ✭ 39 (-54.65%)
Mutual labels:  merge
PixelGlitch
Image glitch visualization using various Pixel Sorting methods for Processing
Stars: ✭ 25 (-70.93%)
Mutual labels:  merge
zip
PHP ZipArchive toolbox
Stars: ✭ 30 (-65.12%)
Mutual labels:  merge
Winmerge
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
Stars: ✭ 2,358 (+2641.86%)
Mutual labels:  merge
winmerge2011
Fork of WinMerge which has a different set of features
Stars: ✭ 36 (-58.14%)
Mutual labels:  merge
Aehnlich
Show/Merge differences in directories and their content (text files) in Light/Dark designs
Stars: ✭ 73 (-15.12%)
Mutual labels:  merge
Pdfsam
PDFsam, a desktop application to extract pages, split, merge, mix and rotate PDF files
Stars: ✭ 1,829 (+2026.74%)
Mutual labels:  merge
lobicornis
🤖 [Myrmica Lobicornis 🐜] Bot: Update and Merge Pull Request
Stars: ✭ 27 (-68.6%)
Mutual labels:  merge
diffy
Tools for finding and manipulating differences between files
Stars: ✭ 47 (-45.35%)
Mutual labels:  merge
jQuery-Merge-for-php-diff
A client side merge tool for JBlonds PHP-Diff @ https://github.com/JBlond/php-diff.
Stars: ✭ 74 (-13.95%)
Mutual labels:  merge
treediff-rs
Extract differences between arbitrary datastructures
Stars: ✭ 52 (-39.53%)
Mutual labels:  merge
webgrabplus-siteinipack
Official user supported WebGrab+Plus Siteini.pack repo
Stars: ✭ 133 (+54.65%)
Mutual labels:  merge
php-merge
Php library to merge text. 3 way merge like git in php.
Stars: ✭ 26 (-69.77%)
Mutual labels:  merge
Mergo
Written by Dario Castañé.
Stars: ✭ 1,808 (+2002.33%)
Mutual labels:  merge

git-json-merge

A git merge driver that use xdiff to automatically resolve merge conflicts in json files. It also detects indentation automatically. This project was inspired by git-po-merge.

@git-json-merge NPM Version

Install

This can be done one of two ways, globally or per-project/directory:

Globally

Install:

npm install --global git-json-merge

Add to ~/.gitconfig:

[core]
    attributesfile = ~/.gitattributes
[merge "json"]
    name = custom merge driver for json files
    driver = git-json-merge %A %O %B

Create ~/.gitattributes:

*.json merge=json

Single project / directory

Install:

npm install git-json-merge --save-dev

Update git config:

git config merge.json.driver "$(npm bin)/git-json-merge %A %O %B"
git config merge.json.name "custom merge driver for json files"

Add the same .gitattributes where desired and commit. Note .gitattributes is only used after committed.

Helpful docs:

Thanks:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].