欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

为git关联编辑器(比如notepad++) Associating text editors with Git

程序员文章站 2022-03-11 08:26:16
...

Associating text editors with git

Using Notepad++ as your editors

you can set your default editor in Git to use Notepad++ if you have installed the editor.

1、install notepad++
2、open git bash
3、Type this command:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

when you commit, type "git commit",then you can edit your message by notepad++

reference : https://help.github.com/en/articles/associating-text-editors-with-git