From: "Fahad Ashfaque" <fahad...@gmail.com>
I have downloaded the latest git from git-scm on my windows machine.
I am using git on windows, I am having trouble trying to get notepad++
as my commit message editor.
I have created a shell script called npp.sh which has the following
/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe -multiInst
-nosession -noPlugin $1
I figured this is how paths are accepted in git-bash
Now I configured core.editor this way
git config --global core.editor /c/path/to/npp.sh
I simply have (from 'git config -l'):
Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noplugin
Correct. The "Linux" bash is rooted, _usually_, at the base of your
personal 'c:/documents and settings' (or whatever on your Windows
version), with the MS drives under /c/ and /d/ etc. i.e. a load of
when I try to commit, using the following command
I get the following error
$ git commit
error: cannot spawn c:/path/to/npp.sh: No such file or directory
error: unable to start editor 'c:/dev/tools/cmd/npp.sh'
Please supply the message using either -m or -F option.
when I run the following command
I get the directory for my repository's root, not C drive's root
When I run the following command through git-bash
but when git commit invokes, it does not.
Here is more of what I found
when 'git commit' launches npp.sh, it changes /c/path/to/npp.sh to
c:/ is not the root of my C drive according to git-bash,
use 'pwd -W' to get the true (Windows) path of your current/present
working directory. (I had to ask just a few days ago ;-)
I wouldn't have expected that to play nice (confusion between windows
and linux path styles).
c:/ is root
of my repository because when I run 'ls c:/' I get files from root of
so may be if 'git commit' does not change /c/path/to/npp.sh to
c:/path/to/npp.sh, it would work... Or if git-bash does not mount c:/
to /c/path/to/myrepository and keep it to /c it would work too.
Please let me know if you need more info on this
I've also copied in the Git user / Git for Human beings list (for
reference) which can be useful for Windows based issues.
You received this message because you are subscribed to the Google Groups "Git for
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.