I am using msysgit in Windows 7. How do I invoke notepad++ from Git Bash, like we do it with our default notepad?
Like for example
name@usename notepad textfile.t
Open Git Bash on your system/project and type the following command in the Git Bash
git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Press Enter and if no error occurs, you have successfully set up Notepad++ as your text editor in Git Bash. You can also check it by typing the command
git config --global core.editor
An alias is used with the git command, so with the one in your OP, you should be able to run git notepad. I don't think this is quite what you want, though. If you correctly added notepad++ to your PATH variable, then you should be able to just do notepad++. You can check this by running which notepad++. If this doesn't give the full path to notepad++, then the PATH isn't set correctly.