Member-only story

How to Change Git Editor to Notepad++ in Windows

Christ khodabakhshi
2 min readJun 11, 2018

When you want to make a long commit message in Git and you don’t use a flag it opens Vim editor for you to write your commit, the same happens when you want to use the rebase command and many other commands that you will need to edit a text. The default editor is for doing these changes. To be honest, Vim is not my favorite editor and I know that is true for a lot of people, that is too much of a hassle for editing text 😉 .

And, it does not look like the other apps we use these days; However, some developers love Vim and I respect their opinion.

This can be a bigger issue for someone who is new to programming and might prefer something easier like our favorite Notepad++ or other text editors.

First of all, you need to find Notepad++.exe files path in your hard drive and then you need to run the following command.

64 bit Windows

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

32 bit Windows

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

Great, now you are good to go, and when your Git needs a text editor, it will use the Notepad++.

Thanks for reading! 🙏

If you’d like to read more content similar to this, be sure to follow me on Medium. Haven’t joined our community yet? Sign up today and become a member!

How about connecting? Find me on Twitter and let’s stay in touch!

Originally published at https://learncode.net on June 11, 2018.

--

--

Christ khodabakhshi
Christ khodabakhshi

Written by Christ khodabakhshi

Software developer, dad, coffee fan, and keen on talking about business ideas and investments.

No responses yet