gpt4 book ai didi

git - 无法在 Cygwin 中看到 git 颜色

转载 作者:太空狗 更新时间:2023-10-29 14:36:48 25 4
gpt4 key购买 nike

我仍然无法看到彩色格式的 git 输出。我拥有各种 SO 问题中提到的所有必需设置。

来自 Git 的屏幕:

enter image description here

Git Bash 屏幕: enter image description here

这是我的git配置文件

ashish /cygdrive/c/my-data/code/sample(integration) $ git config --list
core.symlinks=false
core.autocrlf=false
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
http.sslverify=false
user.name=Ashish Tyagi
user.email=ashish@sample.com
diff.tool=diffmerge
difftool.diffmerge.cmd="C:\program files\sourcegear\common\diffmerge\sgdm.exe" $LOCAL $REMOTE
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd="C:\program files\sourcegear\common\diffmerge\sgdm.exe" --merge --result=$MERGED $LOCAL $BASE $REMOTE
credential.helper=store
push.default=simple
core.autocrlf=true
color.ui=auto
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=auto
color.pager=true
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly

最佳答案

使用 cygwin 安装程序安装附加包

https://cygwin.com/cygwin-ug-net/setup-net.html#setup-packages

以git为例:

1) select "Full" view
2) search "git" to filter between the ~ 4000 packages
3) click on "New" column at git row the "Skip" until the "2.8.3-1" is selected

enter image description here

关于git - 无法在 Cygwin 中看到 git 颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38313369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com