banner



How To Use Svn In Windows

SVN Resource

See SVN website and SVN book

SVN Tutorial (Windows-based with TortoiseSVN)

Create a code base

To be completed past only one fellow member of each team. Complete the following steps:

  1. Open windows explorer.
  2. Create a folder called "project" where you lot volition shop project files.
  3. Create a project directory structure
    • Create the directories: src, test, docs
  4. Create a file called developerInfo.txt in the docs directory.
  5. Insert the names of all the developers on your team in the file developerInfo.txt, 1 name per line.
  6. Save the file.

Create repository from existing code base of operations

To exist completed by just one member of each squad. Complete the following steps:

  1. Open windows explorer.
  2. Right-click on the "project" folder you lot created higher up. Select "Tortoise SVN->Import" (encounter prototype below).
  3. Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn").
  4. Enter a message in the textbox (something like "Initial Import"). Click on "OK".
  5. When prompted, enter your username and password.
  6. If everything worked, you now take placed this lawmaking in your repository.

SVN Checkout

To be completed past remaining members of each team. Complete the following steps:

  1. Open windows explorer.
  2. Create a binder where you lot will shop project files.
  3. Right-click on the folder you created and select "SVN Checkout" (see paradigm beneath).
  4. Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn"). Click on "OK".
  5. When prompted, enter your username and password.
  6. If everything worked, you now have a copy of the repository in your directory.

Make a change and commit

To be completed past ane member of each squad. Complete the following steps:

  1. Navigate to the file docs/developerInfo.txt.
  2. Open this file with an editor.
  3. Add together your electronic mail address to the end of the line with your name.
  4. Salvage the file.
  5. Correct-click on the folder containing your projection.
  6. Select "SVN Commit".

Update your copy to get changes

To be completed past all members of each squad. Consummate the following steps:

  1. Open windows explorer.
  2. Right-click on the "project" binder y'all created above. Select "SVN Update".
  3. Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn").
  4. When prompted, enter your username and password.
  5. If everything worked, you now have the latest copy of the repository in your directory.
  6. Check the docs/developerInfo.txt file to see if y'all have the new email address.

View changes before committing

To exist completed by all members of each team. Consummate the following steps:

  1. Navigate to the file docs/developerInfo.txt.
  2. Open this file with an editor.
  3. Add your e-mail address to the terminate of the line with your name.
  4. Save the file.
  5. Right-click on the projection binder and select "TortoiseSVN->check for modifications".
  6. Correct-click on the file docs/developerInfo.txt and select "TortoiseSVN->unequal".
  7. Don't commit your changes, go on to "Update and merge"

Update and merge

To be completed by all members of each squad. Complete the following steps:

  1. All squad members should have added their e-mail address to the file docs/developerInfo.txt, merely not committed the changes to the repository.
  2. Take one squad member commit their change.
  3. Attempt to commit and run into fault bulletin.
  4. Right-click on docs/developerInfo.txt and select "SVN Update".
  5. See if the new changes were added to the file.
  6. Commit your changes.

Resolve conflicts

To be completed by all members of each team. Complete the following steps:

  1. Have all squad members change an the aforementioned line of a file to something different.
  2. Have ane person commit their change. Have everyone else try to commit their different but conflicting change. See the errors.
  3. Correct-click on docs/developerInfo.txt and select "SVN Update".
  4. Open docs/developerInfo.txt to see what svn does to help you resolve the conflicts. Also come across the versioned files in the binder.
  5. Correct-click on the docs/developerInfo.txt and select "TortoiseSVN->edit conflicts".
  6. Experiment with the resolve tool. Right-click on the text you want to use, and select the selection to "use this text".
  7. Select the pull-down carte to mark the conflicts as resolved.
  8. Commit new resolved file.

Delete a file from the repository

To exist completed by i member of each team. Complete the following steps:

  1. Right-click on the docs/developerInfo.txt file and select "TortoiseSVN->delete".
  2. Commit the alter.
  3. Check to see if the file is gone from the repository.

Switch to an old version

To be completed by all members of each team. Complete the following steps:

  1. How would you lot do this?

Update to the latest version

To be completed by all members of each team. Consummate the following steps:

  1. How would you exercise this?

Restore the file you deleted before

To be completed by all members of each team. Complete the post-obit steps:

  1. How would you do this?

Delete alter from repository

To be completed by all members of each team. Complete the following steps:

  1. How would y'all do this?

Source: http://users.csc.calpoly.edu/~djanzen/setopics/scm/svnTutorial/svnTutorial.html

Posted by: thillsithems.blogspot.com

0 Response to "How To Use Svn In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel