将git commit的默认编辑器从nano转为vim

前端之家收集整理的这篇文章主要介绍了将git commit的默认编辑器从nano转为vim前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
                                        <ul>
  • 修改系统的配置
    git config --global core.editor vim

  • 针对 git 项目修改
    .git/config下core中添加 editor=vim

  • 猜你在找的Git相关文章