How do I make git use the editor of my choice for commits?
If you want to set the editor only for Git, do either (you don’t need both): Set core.editor in your Git config: git config –global core.editor “vim” OR Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim If you want to set the editor for Git and also other programs, set the standardized VISUAL and EDITOR environment … Read more