git svn - Why does 'git' work, but 'git-svn' does not, and how do I fix it? -


i using 64-bit windows 7 git 1.8.3.msysgit.0 installed.

the command git works fine, wherever:

ps c:\dev> git --version git version 1.8.3.msysgit.0 

however, command git-svn not:

ps c:\dev> git-svn term 'git-svn' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again. @ line:1 char:8 + git-svn <<<<     + categoryinfo          : objectnotfound: (git-svn:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception 

the example given above using powershell, running git bash gives similar error:

$ git-svn sh.exe": git-svn: command not found 

git installed @ c:\program files (x86)\git

my windows path system variable contains c:\program files (x86)\git\cmd;

it appears git-svn lives @ c:\program files (x86)\git\libexec\git-core\git-svn no file extension, confusing me since other files in directory carry .exe extensions, although larger files, suggesting perhaps git-svn supposed alias of sorts command, windows not know can executed. i'm guessing there.

anyway, how fix this?

execute git svn (with space, not hyphen).

a while back, git switched having git-foo executables on path having git on path. think core git executable knows take first argument , construct relevant git-foo command, , executable name in libexec directory.


Comments