Emergent Web Technologies Spring 2009 Class 10

esse quam videri
Revision as of 20:56, 15 April 2009 by Matthew.ephraim (talk | contribs)
Jump to: navigation, search

Activity 1

Let's start by checking out a file, modifying it and then committing our changes. I've already checked in a file for this activity. You just need to check it out.

Your svn account is located at the repository below. You'll need to replace ActiveDirectoryId with your own Active Directory Id.

 https://svn.iam.colum.edu:8443/svn/EWT/trunk/ActiveDirectoryId

1. Check to make sure that you can connect to your svn repository by using the list command to check which files are listed on your account

 svn list https://svn.iam.colum.edu:8443/svn/EWT/trunk/ActiveDirectoryId

You will be asked for a password. Use your Active Directory Password. If everything goes well, you should see a list of the directories that have already been created for your account.

2. Check out the first activity by running the co (checkout) command

 svn co https://svn.iam.colum.edu:8443/svn/EWT/trunk/ActiveDirectoryId/activity1

You should see a message indicating that you have checked out the latest revision of the activity.

3. Navigate to the folder for the project

 cd activity1

Open up the project's only file activity1.txt and make a change to the file. Save your changes.

4. Use the status command check which files have changed.

 svn status

You should see the following message

 M      activity1.txt

The message indicates that activity1.txt has been modified.

5. Commit your changes to the file by using the commit command

 svn commit -m "Made a change to the file"

Each commit requires a message indicating what you did to the file. The messages don't have to be long, but they should explain a little bit about your changes.

6. Create a new file in your project directory and save it. Run the status command again. This time you should see a message that says

 ?      new.txt

This message indicates that subversion sees the file, but it doesn't know if you want it to be managed by version control. If you don't want the file to be part of version control, you can just ignore it.

7. We want the new file to be part of version control, so use the add command to add the file

 svn add filename.txt

And then commit your changes your changes with the commit command

 svn commmit -m "Added a new file"