Let Git help you merge images

Let Git help you merge images

SuperJer
Websiteman

2005 Mar 20 • 6299
code

git config --global mergetool.gimp.cmd 'gimp --new-instance "$MERGED" "$LOCAL" "$BASE" "$REMOTE"'
git config --global alias.gimp 'mergetool --tool=gimp'


Then you can
code
git gimp
if you have conflicts in image files. It will open four of your image in Gimp:

+ The actual file you should copy changes into.
+ The LOCAL branch's version of the file.
+ The BASE version... from before the branches diverged.
+ The REMOTE branch's version.

Save your merged changes to the actual file and close all 4 Gimp windows and tell Git that (y)es the merge went ok. Unless it didn't!
 
 
2011 Dec 19 at 00:11 PST — Ed. 2011 Dec 19 at 00:13 PST
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
2011 Dec 19 at 06:54 PST
aaronjer
*****'n Admin

Comrade General 5-Star
2005 Mar 21 • 4628
1,227 ₧
Especially to me!
 
 
2011 Dec 19 at 13:34 PST
Page [1]