开发者

GIT core.editor setup on windows along w application PATH reference

so i wehnt ahead and 开发者_如何学JAVAopened up my .gitconfig file and manually input the

[core] editor = 'C:/Program Files/Notepad++/notepad++.exe'

which would allow me to execute command: (im trying to setup my .gitignore list) "C:/Program Files/Notepad++/notepad++.exe" .gitignore

im JUSt not interested in typing this out every time that i need to make a file

SO ive heard something about editing PATH to allow me to replace the above with something like:

npp .gitignore

any help would be aprpeciated!


I think you got it quite wrong.

  • Git's core.editor setting is used for telling git which editor to launch when it wants your input (e.g. commit messages)
  • As for editing .gitignore, you can do it with whichever editor you choose
  • You can add the directory (e.g. c:\program files\notepad++) to your PATH through right click on My Computer -> Advanced -> Environment -> SYSTEM -> PATH : add your PATH to the semicolon separated list
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜