f you want to set the editor only for Git, do either (you don’t need both):
- Set
core.editorin your Git config:git config --global core.editor "vim" - Set the
GIT_EDITORenvironment variable:export GIT_EDITOR=vim
f you want to set the editor only for Git, do either (you don’t need both):
core.editor in your Git config: git config --global core.editor "vim"GIT_EDITOR environment variable: export GIT_EDITOR=vim
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。