trying to set up tortoise svn - newbie question

后端 未结 4 1519
不思量自难忘°
不思量自难忘° 2021-01-03 14:02

I am trying to set up an svn on my windows computer to keep track of versions. i\'ve downloaded tortoise svn, but am confused how to install. i can\'t find a good simple ans

4条回答
  •  半阙折子戏
    2021-01-03 14:44

    To start from scratch:

    • create the directory C:\svn - this will be where you store your repositories - one per project

    • using explorer, create a subdirector in that directory, we'll call it it "myproj"

    • using explorer open that directory - you should be looking at an empty explorer pane

    • right click on the empty pane, and from the Tortoise menu choose "create repository here". This creates a new empty repository in the "myproj" directory.

    • go up one level and right click on "myproj". From the Totrtoise menu select the "repo browser". We are going to use this to create the subdirectories that SVN likes to find in a repository

    • right click on the root of the displayed (empty) tree and choose "Create folder" from the menu. Then enter "trunk" (without quotes) and click OK. If you like, use the same process to create directories called "tags" and "branches" at the same level as "trunk".

    • select the newly created "trunk" folder and make a
      note of the file URL that appears at the top of the repo manager - in fact, copy it to the clipboard - it will look something like "file:///C:/svn/myproj/trunk"

    • now navigate to somewhere you want to do your work in - NOT the directory containing the source files you have already created, Right click and choose "Checkout" from the Tortoise menu. Enter the file URL you got in the previous step and click OK. This will checkout an empty prpject.

    • now copy all the existing files and directories that you have been working on into the new "myproj" project folder you just created via checkout (not the one in the repository)

    • in explorer, right click on the "myproj" folder and choose "commit" from the Tortoise menu. In the dialog that appears, check the "select all" box at the bottom and click OK. All the files and directories willbe added to the trunk and you are good to go - any changes you make to the "myproj" directory can be committed by selecting the directory in explorer, right clicking, and selecting "Commit" from the Tortoise menu.

提交回复
热议问题