0

I turn on commit-msg file under git/hooks, and I want to use then file to verify commit messages. When I set git-editor as vim/vi, it works. But when I setup git editor as gvim, I found the commit-msg hook is bypassed.

Who can answer? thanks.

FYI: I use "git config core.editor vim/vi/gvim" to set git-editor as vim/vi/gvim.

locust
  • 1
  • Try `git config --global core.editor "gvim -f"` . See https://stackoverflow.com/a/3764528/7976758 , https://stackoverflow.com/search?q=%5Bgit%5D+config+core.editor+gvim – phd Mar 01 '22 at 11:39

0 Answers0