C/C++教程

How can I set up an editor to work with Git on Windows?

本文主要是介绍How can I set up an editor to work with Git on Windows?,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

How can I set up an editor to work with Git on Windows?

Building on Darren's answer, to use Notepad++ you can simply do this (all on one line):

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

Obviously, the C:/Program Files/Notepad++/notepad++.exe part should be the path to the Notepad++ executable on your system. For example, it might be C:/Program Files (x86)/Notepad++/notepad++.exe.

It works like a charm for me.

Article How to set Notepad++ as the default Git editor for commits instead of Vim explains parameters of the command.

 

这篇关于How can I set up an editor to work with Git on Windows?的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!