1

so i wehnt ahead and opened 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!

carl crott
  • 753
  • 1
  • 9
  • 21
  • That would be: http://stackoverflow.com/questions/1634161/how-do-i-use-notepad-or-other-with-msysgit – VonC Jun 17 '10 at 23:29

1 Answers1

2

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
Oren_H
  • 4,481
  • 2
  • 17
  • 8