5

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.

3
  • 3
    Can you give us the content of echo %PATH%, executed from command line? Commented Oct 7, 2015 at 12:21
  • What @vitozev said. The location of svn is not in any of the locations defined by the environment variable path. Check $env:Path in PowerShell Commented Oct 7, 2015 at 12:27
  • 6
    TortoiseSVN has an option for installing the command line tools. It isn't checked by default, but you can run the installer again and select it. It will also automatically update your PATH environment variable: stackoverflow.com/a/9874961/1023562 and stackoverflow.com/a/7769846/1023562 Commented Oct 7, 2015 at 15:17

1 Answer 1

4

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.