git-diff3c
v0.1.1
Published
solve merge conflicts fast
Readme
git-diff3c
when reviewing merge conflicts, especially in a rebase, it's useful to visualize the diff between
- old changes -> new old changes (what upstream changed), and
- old changes -> new changes (what you changed)
setup
dependencies:
- nodejs
- yarn (
npm i -g yarn) - diff-so-fancy (e.g.
npm i -g diff-so-fancy)
- yarn (
npm i -g yarn diff-so-fancyinstall
git clone https://github.com/kiprasmel/git-diff3c.git
# or: git clone [email protected]:kiprasmel/git-diff3c.git
cd git-diff3c
./setup-and-update.sh
git config --global merge.conflictStyle=zdiff3
# https://git-scm.com/docs/git-merge#Documentation/git-merge.txt-mergeconflictStyleand add to ~/.profile or equiv:
export PATH="$(yarn global dir)/node_modules/.bin:$PATH"usage
git-diff3c# specific files
git-diff3c [/path/to/file/with/conflicts[,/another]]