Performing Your First Commit

From CDOT Wiki
Jump to: navigation, search

Performing Your First Commit

Start in the SVN perspective and checkout your project.

Com1.png

Select the local location where you want to download the project.

Com2.png

If the project already exists in your workspace you can try to delete it.

Com3.png

If you have trouble deleting the project you can always go into the java perspective and delete it first before trying to checkout one by the same name.

Del1.png

Back in SVN view notice the revision number after you've checked out your project. In my case it's revision number 25. You can see this in the console view.

Com4.png

Bring the BasicHello class into the edit window.

Com5.png

Make some changes to your program. Save it, then compile and run it to ensure it runs correctly.

Com6.png

Now right click on your project and select Team followed by Commit.

Com7.png

Enter a comment to describe your change.

Com8.png

Notice the commit timestamp and version number (now 26) in the Project Explorer view.

Com9.png

Go back to the SVN perspective and pull down the program into the edit window. Notice that it is now changed. Also notice the revision number is now 26.

Com10.png

Congratulations! You've successfully performed your first commit.