Open main menu

CDOT Wiki β

Changes

Hints for Using SVN to collaborate on school projects

30 bytes added, 07:00, 29 September 2011
Start the Project from zero
#: We do this when someone else has started the project (that is, the professor, other team-members, etc.) and we want to copy the work into our own repository and continue that work.
=== Start the Project from zero ===
To start from zero, create the initial code of your project in '''trunk''', '''add''' the code, and then '''commit''' it. These are the detailed steps:
# '''checkout''' the project repository in a new directory on your local computer;#:# ''Create a new directory on your local computer, right click on the that directory, and then click on '''SVN Checkout'''
#:# In '''URL of the repository''' type your repository path (svn://zenit.senecac.on.ca/....)
#:# click Click on ok
# If the basic directories (trunk, tags, branches) don't exist, create them and add them by right clicking on them and selecting '''...SVN/add'''.
# In '''trunk''', create your project, compile it, and run it. (This could be as simple as a few empty files or a Hello world application).# Right click on the '''trunk''', select '''....SVN/add''', and then select all of the files you would like to be added add to the repository. #: Add only those files that you want to track for modification. "Only the source and project files need to be version-controlled". Binary and We don't usually add binary or executable files are usually not added to the repository. Add them only if you have a reason for doing so.
# Right click on '''trunk''' and select '''SVN Commit''' to commit your work to the repository server.
 
=== Start the project by continuing an existing work ===
To continue an existing work, you should have a '''non-versioned''' copy of the initial code for your project. You should copy this code into the trunk, '''add''' and '''commit'''it. These are the steps: