macos中gitk报错

报错信息如下:

Error in startup script: unknown color name "lime"
    (processing "-fore" option)
    invoked from within
"$ctext tag conf m2 -fore [lindex $mergecolors 2]"
    (procedure "makewindow" line 347)
    invoked from within
"makewindow"
    (file "/usr/local/bin/gitk" line 12434)

修复方案如下:

cd  /usr/local/bin

sudo cp gitk gitkbak

sudo vi gitk

进入gitk后,把lime全部替换成green

:%s/lime/green/g

:wq!

返还项目目录,执行gitk

相关推荐