Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version Control for Homework Assignments

Tags:

git

svn

School is back in session and I've found myself at a loss. At the end of last semester, we had a group project utilizing subversion (group of 4 people) to make commits and get it complete. I also noticed how easy it was to have access to a central point for my homework. I want to utilize SVN or Git (recently introduced to git) and I have a problem.

What is the best way to organize SVN for multiple homework assignments for multiple computer classes.

I've got 2 programming classes that I definitely want to track. With at minimum of 1 assignment a week that's 32 assignments to manage over 2 classes. Should I keep them all in one repository and just label 1 Java and 1 C++?

Thanks in advance.

Edit: I should mention I have yearly hosting that allows both git and subversion through WebDAV. That's how I accessed the svn repo for my project last year. I have the ability to lock my homework up away from public view through this tool, for those not familiar with that setup.

like image 968
bobby Avatar asked Sep 10 '09 03:09

bobby


3 Answers

If you move between lots of computers you might wanna carry the assignments in a USB stick. Assuming you're using git, there shouldn't be any problems.

I usually have a folder for each class and under it a folder for each assignment,

cpsc511/
   a1/
   a2/
   a3/
cpsc423/
   a1/
   a2/
   a3/

Each assignment would have its own repository. I don't see a reason to use the same repo for all assignments since most of the time they won't be related by anything at all.

like image 83
hasen Avatar answered Oct 28 '22 09:10

hasen


Speaking for SVN -
One repository with multiple projects is normal.

You can easily setup a standalone SVN server (without needing a web server) on a PC

You might also look at using svn with a file based repository on a USB key for simplicity between home and school. This is limited to only one user accessing the files but means you need nothing more than the SVN client (or TortoiseSVN)

ps. Learning to use SCC is one of the most important things they don't teach you at school.

like image 34
Martin Beckett Avatar answered Oct 28 '22 07:10

Martin Beckett


In the spirit of learning, and sharing I'm posting two really great resources for both subversion and git. I think it'd up to anyone's very own situation to choose which is best for their needs.

Subversion Book - Version Control With Subversion Official Book

Git - Pro Git (Book) Great guide to using git

Git Hub - Learn Github (learn.github.com Just found this today.

So far I've tried subversion and git, and found git with the setup hasen j described works best. I'll try to follow up again with this thread. Thanks again to all of your advice

like image 24
bobby Avatar answered Oct 28 '22 07:10

bobby