Git With Meld Diff Viewer on Ubuntu
来源:互联网 发布:linux笔记本推荐 编辑:程序博客网 时间:2024/05/17 01:49
原文地址:http://wiredforcode.com/blog/2011/06/04/git-with-meld-diff-viewer-on-ubuntu/
Using command line Git with standard diff is workable but not very friendly.You might prefer a split-pane diff viewer like that of your favourite IDE. Theeasiest way to get this working on Debian based Linux distros such as Ubuntuis to use Meld, the open source diff and mergetool.
Begin by installing Meld:
$ sudo apt-get update && sudo apt-get install meld
Once installed, open your favourite text editor and create a file calledgit-diff.sh
, using the following content:
12
#!/bin/bashmeld "$2" "$5" > /dev/null 2>&1
Save this to a location such as /usr/local/bin
, giving it executable rights:
$ sudo mv git-diff.sh /usr/local/bin/$ sudo chmod +x /usr/local/bin/git-diff.sh
The final step is to open your $HOME/.gitconfig
file and add the followingfew lines:
12
[diff] external = /usr/local/bin/git-diff.sh
The next time you type git diff
in a Git project with changes, Meld will belaunched showing you a split-pane diff viewer. Note that you are required toclose the open instance of meld before the next diff viewer is opened.
- Git With Meld Diff Viewer on Ubuntu
- git diff with meld
- git diff 配置 meld diff
- 在Ubuntu上为Git安装diff工具Meld
- ubuntu使用meld/beyond compare 做git的diff工具
- 使用meld做git的diff工具
- meld git的diff工具 + git项目管理
- 让git diff/merge使用meld等GUI对比工具
- 让GIT DIFF/MERGE使用MELD等GUI对比工具
- Meld Diff 差异查看器(代码对比软件)(Ubuntu)
- linux meld diff Kompare
- linux档案对比diff / meld
- kdesvn中使用meld作diff工具
- Meld Diff for windows 安装配置
- ubuntu svn meld
- Git on ubuntu
- Beyond Compare as a Diff and Merge tool with Git
- Git diff
- 尝试 Entity Framework POCO功能+Code First
- virtualbox 同台机器克隆系统
- 重载(overload),覆盖(override),隐藏(hide)的区别
- 各类排序算法集合
- 决心
- Git With Meld Diff Viewer on Ubuntu
- C#流总结
- 技术人员应真正学会的第二课程
- 最新文章
- 最新文章
- WIN7安装DB2后启动报 SQL5005C 错误
- SVN工具的使用
- EF延迟加载
- Linux Jobs等前后台运行命令解