I followed few articles over the pretty attributes on Git 2.10 release note. Going through which upgraded the git to 2.10.0 and made changes to global .gitconfig
resulting as follows -
[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
But now when I try and execute git commands as follows, I get no progress details on the console or proper message display.
➜ 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.
Update : Post the comment from @Arvin for duplicacy
If I follow the solution there to change my default git editor using
git config --global core.editor "subl -n -w"
I still get
subl -n -w: subl: command not found error: There was a problem with the editor 'subl -n -w'.