How to change the default Git text editor to Notepad++, not Vim

preview_player
Показать описание
Many new Git users cringe when the Vim editor comes up when they attempt to do a commit. Here's how to change the default Git text editor to Notepad++, or any other text editor you favor, be it EditPad, Notepad, Wordpad or Vi.
It's worth noting that the option to set Notepad Plus Plus as the default Git editor is now part of the installer. Just install Notepad++ first and then select it during the Git install. I did a video on the new Git install steps here:
Рекомендации по теме
Комментарии
Автор

For those of you who don't want to type the command:


git config --global core.editor "'C:/Program -multiInst -notavvar -nosession -noPlugin"

jellyrolls
Автор

Awesome. This solution was just what I needed! I had been trying a version of the Notepad++ path with double backslashes (\\), but your string with the nested quotes was what made it work finally. Thank you so much!!

erichepperlewp
Автор

Thanks Cameron. For a while I found it interesting to play around in vim, a year later when I forgot all the commands it was just frustrating!

MarreLirre
Автор

Thanks, this helped me set up notepad++ in Git bash. I Appreciate it!

lawrencekrukrubo
Автор

Thank you very much for this video. This has been great help for many users. One can read from all the positive comments you have received. Unfortunately for me, I could not find the the repositories folder in my git for windows installation. I have also searched on the internet and found out that many others have the same problem. In case you have a solution for this It would be a great help for me, and many thanks in advance

marksiely
Автор

Thank you so much!!! You are really help me.

ashatannatan
Автор

We need to restrict access develops have so we need them to edit code in GIT bash but they don't like vi. What edit command do you enter to edit a file in notepadd++ in GIT BASH. For vi it was vi file, txt

domb
Автор

Thank you. what is the command to open editor from git bash window? I saw (atom .) to open it for someone who using atom but I dont know how to do it for notepad++. Thank you!

kenvng
Автор

Thanks! I am use the VSC > git config --global core.editor VS Code\Code.exe"

josemarsp
welcome to shbcf.ru