"svn is not recognized" error in PowerShell

8.3k Views Asked by At

I'm trying to reach SVN from Windows PowerShell but I can't. For example, if I type svn help I get:

svn : The term 'svn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I have TortoiseSVN installed on the computer which should to my knowledge should allow me to use svn commands.

I also have the same problem when I try to use Gource.

1

There are 1 best solutions below

0
On

I had the same problem (where it wouldn't run in PowerShell). I had to enter the full path for SVN (e.g. "C:\Program Files\TortoiseSVN\bin\svn.exe"). That worked for me.

Edit: I asked a question here, and got this as part of the answer. Put it into an alias:

set-alias svn "c:\Program Files\TortoiseSVN\bin\svn.exe"

Hope that helps!