git实验之基本配置

来源:互联网 发布:恩知中岛美雪 编辑:程序博客网 时间:2024/06/06 14:04

基本配置

1. 给Git着色

git config color.ui  true


2. 设置文本编译器
git config core.editor  XXX
如果是需要配置为notepad,

则core.editor='D:/Progra~1/Notepad++/notepad++.exe'-multiInst -notabbar -nosession –noPlugin

 

3. 设置比较工具和合并工具

git config diff.tool XXX
git config merge.tool XXX
 
使用时,如果直接 gitdiff命令无效,可以尝试gitdifftool 和 gitmergetool
使用beyondcompare做默认比较和合并工具,

可以参考官网说明http://www.scootersoftware.com/support.php?zz=kb_vcs


原创粉丝点击