在Git中查看和编辑合并的最佳工具是什么?我想要一个3路合并视图,“我的”,“他们的”和“祖先”在单独的面板,和第四个“输出”面板。
此外,调用该工具的指令也很好。(我仍然没有弄清楚如何以这样一种方式启动kdiff3,它不会给我一个错误。)
我的操作系统是Ubuntu。
在Git中查看和编辑合并的最佳工具是什么?我想要一个3路合并视图,“我的”,“他们的”和“祖先”在单独的面板,和第四个“输出”面板。
此外,调用该工具的指令也很好。(我仍然没有弄清楚如何以这样一种方式启动kdiff3,它不会给我一个错误。)
我的操作系统是Ubuntu。
当前回答
Araxis合并http://www.araxis.com/merge 我在Mac OS X上使用它,但我在windows上使用过它……它不是免费的……但它有一些不错的功能……不过在Windows上更好。
其他回答
你可以通过传递git mergetool -t=<tool>或——tool=<tool>来改变git mergetool使用的工具。要改变默认值(从vimdiff)使用git配置合并。工具> <工具。
您可以尝试P4Merge。
使用P4Merge可视化文件版本之间的差异。通过颜色编码解决由并行或并发开发引起的冲突。
特点包括:
Highlight and edit text file differences Choose to include or ignore line endings or white spaces Recognize line-ending conventions for Windows (CRLF), Mac (CR), and Unix (LF) Use command-line parameters and launch from non-Perforce applications Display line numbers when comparing and merging files Exclude files that are modified, unique, or unchanged Filter files by name or extension Organize modified assets in familiar file/folder hierarchy Compare JPEG, GIF, TIFF, BMP, and other file formats Extend using the Qt API Overlay images or display side-by-side Highlight differences on overlaid images
我已经尝试了这里提到的很多工具,但没有一个是我想要的。
就我个人而言,我发现Atom是可视化差异和解决冲突/合并的好工具。
至于合并,它没有三个视图,但它都合并成一个彩色高亮每个版本。您可以直接编辑代码,也可以使用按钮来使用您想要的任何版本的代码片段。
我甚至不再把它用作编辑器或IDE,只是用来处理git。干净的UI和非常直接,加上它是高度可定制的。
You can start it from the command line and pass in a single file you want to open to, or add your project folder (git repo). I would also recommend project-manager as a very convenient way to navigate between projects without filling up your tree view. The only problem I've had is refreshing -- when working with large repositories atom can be slow to update changes you make outside of it. I just always close it when I'm finished, and then reopen when I want to view my changes/commit again. You can also reload the window with ctrl+shift+f5, which only takes a second.
当然是免费的。
Araxis合并http://www.araxis.com/merge 我在Mac OS X上使用它,但我在windows上使用过它……它不是免费的……但它有一些不错的功能……不过在Windows上更好。
所以对于git合并,你可以尝试:
DiffMerge可以直观地比较和合并Windows、OS X和Linux上的文件。 Meld,是一个视觉差异和合并工具。 KDiff3,一个diff和合并程序),比较或合并2或3个文本输入文件/dirs。 opendiff (macOS上的Xcode工具的一部分),一个命令行实用程序,从终端启动FileMerge应用程序,以图形化的方式比较文件或目录,包括合并。