git  commit -m 默认使用nano,觉得不爽,改成vim吧。在 .gitconfig (在根目录下)的  [core] 段中加上 editor=vim 。

或:$git config --global core.editor vim

执行完这条命令后,可以去查看git的配置文件.gitconfig,该配置文件在家目录下面。 

   $ cat .gitconfig 

   [core] 

       editor = vim

相关文章:

  • 2022-02-11
  • 2021-11-17
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-06-07
  • 2021-09-07
  • 2021-07-06
相关资源
相似解决方案