【发布时间】:2016-09-14 19:54:37
【问题描述】:
我在Git 2.10 发行说明上关注了几篇关于pretty 属性的文章。通过将 git 升级到 2.10.0 并对全局 .gitconfig 进行更改,结果如下 -
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[user]
name = xyz
email = abc.def@gmail.com
signingkey = AAAAAAA
[core]
excludesfile = /Users/xyz/.gitignore_global
editor = 'subl' --wait <!--this is where its failing I guess--!>
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[color "diff"]
old = red strike
new = green italic
但是现在当我尝试执行如下 git 命令时,我在控制台或正确的消息显示上没有任何进度详细信息。
➜ automation git:(branch1) git pull origin master From https://github.com/XYZ/automation * branch master -> FETCH_HEAD Auto-merging pom.xml Auto-merging test/pom.xml 'subl' --wait: subl: command not found error: There was a problem with the editor ''subl' --wait'. Not committing merge; use 'git commit' to complete the merge.
更新:发布来自 @Arvin 的评论以防止重复
如果我按照那里的解决方案使用
更改我的默认 git 编辑器git config --global core.editor "subl -n -w"
我还是明白了
subl -n -w: subl: command not found error: There was a problem with 编辑器'subl -n -w'。
【问题讨论】:
-
@Arvin - 我已经解释了为什么它不是重复的
标签: git macos github git-merge