在windows上就选Beyond Compare来作比较和合并工具吧。
Beyond Compare官方给出来多个版本工具的配置方案。
http://www.scootersoftware.com/support.php?c=kb_vcs.php
Git for Windows
Note: If you use the Git for Windows' Bash Command Prompt instead of the default Windows Command Prompt, you need to escape the $ character with *\$*.
Diff
At a command prompt enter the commands:
git config --global diff.tool bc3
git config --global difftool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\""
git config --global difftool.prompt false
To launch a diff with BC3, use the command "git difftool foofile.txt".
3-Way Merge (v3 Pro)
At a command prompt, enter the commands:
git config --global merge.tool bc3
git config --global mergetool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
git config --global mergetool.bc3.trustExitCode true
To launch a 3-way merge with BC3, use the command "git mergetool foofile.txt".
需要注意的是在配置
git config --global difftool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\""
和
git config --global mergetool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
这个的时候会丢失 $引用的变量,所以最好还是检查一下配置文件的配置是否正确。
我的配置文件:
[user]
name = liujiuwu
email = liujiuwu@gmail.com
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status
rb = svn rebase
ci = commit -a
co = checkout
[diff]
tool = bc3
[difftool "bc3"]
cmd = \"c:/program files/Beyond Compare 3/BComp.exe\" \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[merge]
tool = bc3
[mergetool "bc3"]
cmd = \"c:/program files/Beyond Compare 3/BComp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
trustExitCode = true
分享到:
相关推荐
fork(git可视化工具)配置SpreadSheet Compare
git for windows下载
git for windows 自从2.4.6版本后,由于作者觉得发布包太大,删除了发布包中的多语言包。 但是在源码中还存在,本人编译并添加了部分界面的汉化。 源码版本是2.12.0,但是我个人觉得应该兼容其他版本。 汉化方法,将...
git工具git工具git工具git工具git工具git工具git工具git工具git工具git工具
git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git 可视化工具git ...
github 在windows下的控制器(包含32位和62位安装包)
git v1.9 windows 安装包
Git for Windows 2.7.3 发布了。 新特性: Git for Windows now ships with the Git Credential Manager for Windows. bug修复: We now handle UTF-8 merge and squash messages correctly in Git GUI. When ...
原本Git的使用范围只适用于Linux / Unix平台,但在Windows平台下的使用也逐渐成熟,这主要归功于Cygwin、msysgit环境与TortoiseGit这样易用的GUI工具。其实Git的源代码中已经加入了对Cygwin与MinGW编译环境的支持,...
64-bit Git for Windows Portable. The current source code release is version 2.19.1. If you want the newer version, you can build it from the source code.
一个更好的Vimdiff Git合并工具
需要被合并的commit信息,将pick命令改为 s 命令,将s合并到pick上,时间上是s向更早的pick上合并;ESC 输入 :wq 回车 弹出信息,ESC 输入 :wq 回车 打印出成功 git log oneline -n,查看n条log信息,已修改
这个软件官网下实在蛋疼,上传CSDN上,方便自己和大家下载使用
Git for Windows最新安装包镜像,包含32位和64位的安装包,官网下载比较慢,分享给大家方便下载使用,安装一路next即可,使用可参考廖雪峰的教程。
这是从github上下的git for windows的源码,
Git for Windows简明使用指南
一个最新版本得Git for Windows工具,为了方便开发者查找并下载使用。
Windows 用户基本一关于图形界面, Git for Windows 同样提供了一套Git图形操作界面, 功能强如Git BASH, 每一git命令都有对应的界面操作, 甚至包括必不可少的diff 工具. 希望使用shell命令?超简单的,在任何一个...
正规途径下载,解决广大软件开发人员自行寻找之苦,希望对大家有所帮助!
Windows系统安装git 全教程 安装步骤 与使用说明 谢谢参考