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:
- Open windows explorer.
- Create a folder called "project" where you lot volition shop project files.
- Create a project directory structure
- Create the directories: src, test, docs
- Create a file called developerInfo.txt in the docs directory.
- Insert the names of all the developers on your team in the file developerInfo.txt, 1 name per line.
- 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:
- Open windows explorer.
- Right-click on the "project" folder you lot created higher up. Select "Tortoise SVN->Import" (encounter prototype below).
- Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn").
- Enter a message in the textbox (something like "Initial Import"). Click on "OK".
- When prompted, enter your username and password.
- 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:
- Open windows explorer.
- Create a binder where you lot will shop project files.
- Right-click on the folder you created and select "SVN Checkout" (see paradigm beneath).
- Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn"). Click on "OK".
- When prompted, enter your username and password.
- 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:
- Navigate to the file docs/developerInfo.txt.
- Open this file with an editor.
- Add together your electronic mail address to the end of the line with your name.
- Salvage the file.
- Correct-click on the folder containing your projection.
- Select "SVN Commit".
Update your copy to get changes
To be completed past all members of each squad. Consummate the following steps:
- Open windows explorer.
- Right-click on the "project" binder y'all created above. Select "SVN Update".
- Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn").
- When prompted, enter your username and password.
- If everything worked, you now have the latest copy of the repository in your directory.
- 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:
- Navigate to the file docs/developerInfo.txt.
- Open this file with an editor.
- Add your e-mail address to the terminate of the line with your name.
- Save the file.
- Right-click on the projection binder and select "TortoiseSVN->check for modifications".
- Correct-click on the file docs/developerInfo.txt and select "TortoiseSVN->unequal".
- 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:
- All squad members should have added their e-mail address to the file docs/developerInfo.txt, merely not committed the changes to the repository.
- Take one squad member commit their change.
- Attempt to commit and run into fault bulletin.
- Right-click on docs/developerInfo.txt and select "SVN Update".
- See if the new changes were added to the file.
- Commit your changes.
Resolve conflicts
To be completed by all members of each team. Complete the following steps:
- Have all squad members change an the aforementioned line of a file to something different.
- Have ane person commit their change. Have everyone else try to commit their different but conflicting change. See the errors.
- Correct-click on docs/developerInfo.txt and select "SVN Update".
- Open docs/developerInfo.txt to see what svn does to help you resolve the conflicts. Also come across the versioned files in the binder.
- Correct-click on the docs/developerInfo.txt and select "TortoiseSVN->edit conflicts".
- Experiment with the resolve tool. Right-click on the text you want to use, and select the selection to "use this text".
- Select the pull-down carte to mark the conflicts as resolved.
- Commit new resolved file.
Delete a file from the repository
To exist completed by i member of each team. Complete the following steps:
- Right-click on the docs/developerInfo.txt file and select "TortoiseSVN->delete".
- Commit the alter.
- 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:
- How would you lot do this?
Update to the latest version
To be completed by all members of each team. Consummate the following steps:
- 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:
- How would you do this?
Delete alter from repository
To be completed by all members of each team. Complete the following steps:
- 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