PyCharm + SVN Configuration Tutorial

I. Description

Last year, write " PyCharm + Miniconda3 Installation Configuration Tutorial " when you want to configure the content of SVN plus, but just started using is not very clear operations on the first well, and then to the back after knowing how relatively simple operation that can not write.

First, yesterday using SVN to download a program the machine to a server up time So now, almost to the project also made to delete. The second is for school-based knowledge is more firmly grasp the other hand it is easier to forget; Version control is a relatively more "wild" knowledge, prior to the company's Z VSS access to the server so that I was in charge, the beginning nothing is added maneuverability account what he is not how to use, then it is said to be migrated card on the study of its implementation wrote " VSS + SourceAnywhere for VSS version control system set up tutorial ", then just know "version control" this thing. Based on these two reasons still have to remember it.

Here on PyCharm, VisualSVN, TortoiseSVN will explain the installation is complete; on VisualSVN, TortoiseSVN installation configuration can refer to " VisualSVN + TortoiseSVN to build a version control system tutorial " This is not to say.

 

Second, the original warehouse to create and use

2.1 VisualSVN create warehouse

Open VisualSVN, the "Repositories" on the right, click on "Create New Repository", then follow the prompts optional click. I am here to create a group called "PycharmProjects" warehouse, allowing the user to read and write the name and password for the "ls / abcd1234".

 

2.2 Importing files to the repository

Note that we're importing files directly to the repository (folder) does not automatically svn monitored, and if you want to be monitored, like Checkout, you need to re-import as a 2.3 Checkout as before importing (mainly the .svn to download); but if the strict terms this is the case then it would not import introduced, but import by Commit, Commit operations, see below 2.4.

Gets warehouse URL, select the warehouse, right, Copy URL to Clipboard.

 To import a catalog into the warehouse, the right, expand TortoiseSVN, select Import.

 Fill in the URL warehouse in VisualSVN we created in the "URL of repository" and click OK to.

 

2.3 download code from warehouse

To download the code in the directory, right-click on SVN Checkout

 To export the completed warehouse, to export to the directory, and then click OK to. Here we must note that we introduced to the warehouse file under "PycharmProjects" directory, it does not include "PycharmProjects" itself, so when exporting If you still want to guide to "PycharmProjects" folder, it must lead out "PycharmProjects" folder .

 

2.4 commit the changes

After modifying the file folder, right, select SVN Commit to at; but the service end of the file may have been modified by someone else first SVN Commit, it is recommended to use SVN Update synchronization server file, if there is a conflict to conflict, then SVN Commit.

 

 

Third, the creation and use of warehouse-based PyCharm

First clear, PyCharm use VisualSVN, and only he can comply with VisualSVN operation, so PyCharm the warehouse and did not use to create and use to create and use the warehouse when PyCharm, can be a little flexible in form but the essence will be the same of.

A typical scenario is: we wrote a program and then want to go into a warehouse for other colleagues to download and modify. We are here to fulfill the demand, assuming the project called test3.

First of all, the first step remains the same as the 2.1 built in an empty warehouse in the warehouse VisualSVN. I am here to create a repository called test3.

然后,第二步我们在2.2中说过,如果是使用Import那我们本地的后续修改是不被SVN监控的也不能通过Commit同步到仓库中去,所以我们需要先把test3仓库Checkout到当前项目下

 此时关闭项目再重新打开,就可以看到项目文件被着色(当前红色表示文件未被加入仓库),同时工具栏上多了个版本控制的图标,可点击该图标使用Commit将要加入仓库的文件加入仓库。

 .idea存放的是PyCharm的配置,每个人的配置是不一样的,所以一般不提交到仓库。

后续,其他人想下载代码,直接Checkout或在PyCharm中Checkout即可,就不多说了。

Guess you like

Origin www.cnblogs.com/lsdb/p/11386874.html