GoLand is JetBrains’ Go language development tool. GoLand has recently been used for some development because the company uses SVN for code management. So how does GoLand use SVN?

Install the SVN plugin in GoLand

The method is to search “Subversion” in file-setting-plugin and install it? Something like that.

2. The above plug-ins installed in GoLand only really use SVN, should be SVN client. I have TortoiseSvn on this device. If not, you need to install the client.

Third, open GoLand, open the project. In this case, the SVN is probably unavailable, and GoLand will report an error:

can't use subversion command line client : svn
Probably the path to Subversion executable is wrong. Fix it..
Copy the code

What is the reason for this? This is because GoLand calls commands from the SVN client. The command could not be found, so an error was reported. Svn. exe is an executable file that you can use in tortoisesvn.

C:\Program Files\TortoiseSVN\bin
Copy the code

However, this command line is not installed by default, because it is not installed by default at installation time. So if you can’t find this file, you need to install the SVN command line. Tortoisesvn: TortoisesVn: Tortoisesvn

You may need to set the system PATH after installing it. Previous clients didn’t seem to set themselves; The 1.11 version I installed today is ok.

4. Set SVN in GoLand

File setting version Control-Subversion

The path must be svn.exe. It is estimated that GoLand is “interface oriented”, and SVN may have other client tools besides Little Turtle. The command line command may not be named svn.exe.

You need to fill in the SVN client with authentication information such as the account and password. If you use the SVN client for the first time or reinstall the SVN client, you need to enter the SVN account and password in the client. Otherwise, an error such as invalid protocol will be displayed.