Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Created April 17, 2015 01:53
Show Gist options
  • Select an option

  • Save bangonkali/67ee8105e380b9c779f6 to your computer and use it in GitHub Desktop.

Select an option

Save bangonkali/67ee8105e380b9c779f6 to your computer and use it in GitHub Desktop.
Attaching Notepad++ to git commit editor.
git config core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
@MobileMon
Copy link
Copy Markdown

How to reset this back to default?

@Minkey27
Copy link
Copy Markdown

git config core.editor "'nano"

@android777
Copy link
Copy Markdown

git config --global core.editor vim

@davidreghay
Copy link
Copy Markdown

👍 this was a big help for the devs on my team that aren't comfortable with Vim! Thanks, man, cheers.

@MYSTfan21
Copy link
Copy Markdown

I'm using a 64 bit version of notepad++. Do I need to change anything besides the Program Files path?

@AmrIsmaiel
Copy link
Copy Markdown

thanks a lot , i searched very much but this was helpful

@keshav-c
Copy link
Copy Markdown

I added the location of sublime_text.exe to the system Path variable, followed by: git config core.editor "sublime_text"

@tolumide-ng
Copy link
Copy Markdown

Probably too late but if you are running a 64bit version, I would say you run this:
$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"

@IrinaKulikova
Copy link
Copy Markdown

thanks! it worked!

@DouaHamadouche
Copy link
Copy Markdown

thanks it was very useful

@brotatotes
Copy link
Copy Markdown

image

@bcronce
Copy link
Copy Markdown

bcronce commented Jun 6, 2019

If you use session backups, you may want to follow the advice at the bottom of this thread about the nosession flag messing up the main instance of notepad++

https://notepad-plus-plus.org/community/topic/16488/enable-session-snapshot-and-periodic-backup-box-unchecked/16
notepad-plus-plus/notepad-plus-plus#5063

@SexyDejw
Copy link
Copy Markdown

Probably too late but if you are running a 64bit version, I would say you run this:
$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"

Thanks man! After one hour of googling why git bash won't open my notepadd++ your comands finaly helped me, and even I maked a accont specialy to thank you :) hope you have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment