Is there a command-line based version of svn
for Windows? I know I can get TortoiseSVN, but that just doesn't work for me.
-
2What's your actual problem you want to solve with the native client? Why not use the bundled native client of TortoiseSVN? Describing your actual problem (ie WHY it dos not work) would be a better way to start a question instead of asking for available options ...– user57508Aug 19, 2015 at 9:50
10 Answers
TortoiseSVN contains a console svn client, but by default the corresponding option is not enabled during installation.
The svn.exe
executable is not standalone and it depends on some other files1 in the distribution but this should not be a problem in most cases.
Once installed you might need to add the folder containing svn.exe
to the system PATH
as described here so that it is available in your console. To check if it was already added by the installer open a new console and type echo %PATH%
. Use set
on its own to see all environmental variables.
1 for the svn*
executables in TortoiseSVN 1.14.1, the following files are required on the PATH
:
intl3_tsvn.dll
libaprutil_tsvn.dll
libapr_tsvn.dll
libsasl.dll
libsvn_tsvn.dll
-
2I like this answer the best and didn't know tortoise came with a command line client. One less program is one less thing to keep track of. Aug 6, 2013 at 14:03
-
2Well, how can I use it? I hope to have a shell which shows some different color for different file status just like git shell does. Jan 26, 2015 at 5:24
-
@Jaskey: Yes, there is a colorizer for SVN output. I use this one: github.com/jmlacroix/svn-color/blob/master/svn-color.sh - but it is not perfect, i had to modify it a bit since it does not support all the commands. Maybe there are other ones too, although I didn't see yet anything better. Of course, it is bash-only, so if you are on a windows box you'll need something like msys or cygwin.– ccpizzaJan 26, 2015 at 9:53
-
2My installer automatically added it to the PATH. Definitely need to restart your cmd window though.– RogerJun 9, 2016 at 21:31
-
2Great answer! If the cmd line client has not been installed (as it was in my case) it can be easily added: Just restart the T SVN installer and choose "Modify". Then add the client in to the selection of parts that should be installed.– JpsyMar 21, 2018 at 8:26
The subversion client itself is available on Windows. See here for certified binaries from CollabNet.
CollabNet Subversion Command-Line Client v1.6.9 (for Windows)
This installer only includes the command-line client and an auto-update component.
Even though I can't understand it's possible not to love Tortoise! :)
Note:
The above link is for newer products - you can find version 1.11.1 through 1.7.19 at Older Subversion Releases
-
96
-
13Be careful of the CollabNet registration form. If the submitted form has errors (which it will because of how it is designed), it will recheck the newsletters checkbox. Jul 17, 2013 at 16:26
-
3You can download svn on windows without registration. Install Chocolatey chocolatey.org/docs/installation , and then type
choco install svn
. Apr 4, 2019 at 1:15 -
1The subversion download on CollabNet is no where to be found and all the links are redirected to the home page.– MartinAug 3, 2020 at 8:34
-
1no need to install anything - just download the Apache Subversion command line tools from visualsvn.com/downloads (and edit the PATH variable) Jan 26, 2022 at 17:19
I've used sliksvn and it works great for me
-
11Pretty great, if you want a small (<6mb) client, which is even smaller then CollabNet's client (and you don't want to register to another company's site ;) ). Oct 1, 2012 at 9:17
-
Nice tool. It also works as a standalone when you copy everything after installation to another folder.– pavexMar 10, 2018 at 9:17
-
1I'll upvote this. All I needed was a simple command line client for testing, I didn't want to go through installing something like Tortoise just for that. SlikSvn did the trick. Jan 3, 2019 at 16:24
cygwin
is another option. It has a port of svn
.
-
37installing
cygwin
just for svn? that's brutal (and unnecessary since there are quite a few 'native' clients)– Idan KFeb 26, 2010 at 12:34 -
-
10
-
23But if you already have
cygwin
, this is a perfectly reasonable option to consider. I think that's the point of this answer. Jul 16, 2014 at 14:30 -
1I think cygwin is perfect command line svn alternative, because the other linux tools, and scripting possibilities. You need to select subversion package in cygwin setup, to access svn commands.– vojiOct 25, 2015 at 7:08
You can get SVN command-line tools with TortoiseSVN 1.7 or later or get a 6.5mb standalone package from VisualSVN.
Starting with TortoiseSVN 1.7, its installer provides you with an option to install the command-line tools.
It also makes sense to check the Apache Subversion "Binary Packages" page. xD
-
1Wow, that VisualSVN standalone package is excellent! That particular link you found, I have no idea how you found it. As far as I can tell, there is no way to navigate to that page from their site, you simply have to have inside knowledge that it exists! Dec 28, 2018 at 4:35
-
@SeanRamey you can find the link to this page at subversion.apache.org/packages.html#windows– bahrepDec 28, 2018 at 13:45
-
odd, I could have sworn that clicking the link on that page took me directly to visualsvn.com/server Jan 3, 2019 at 7:22
VisualSVN for Windows has a command-line-only executable (as well Visual Studio plugins). See https://www.visualsvn.com/downloads/
It is completely portable, so no installation is necessary.
As Damian noted here Command line subversion client for Windows Vista 64bits TortoiseSVN has command line tools that are unchecked by default during installation.
You can use Apache Subversion. It is owner of subversion . You can download from here . After install it, you have to restart pc to use svn from command line.
-
1
-
3Doesn't appear to be maintained any longer. Last update was 2016. Subversion 1.8.17 seems to be the newest supported. The current LTS is 1.10.x and 1.13 is the current normal version. I wouldn't recommend this package for most at this point.– ahwmDec 9, 2019 at 18:21
If you have Windows 10 you can use Bash on Ubuntu on Windows to install subversion.
Install MSYS2, it has svn in its repository (besides lots of other Unix goodies). MSYS2 installs without Windows Admin rights.
$ pacman -S svn
The tools can be used from cmd, too:
C:\>C:\msys64\usr\bin\svn.exe co http://somehost/somerepo/