Skip to content

Commit

Permalink
Added instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
clody69 committed Mar 28, 2012
1 parent 2623af5 commit 3912467
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion README

This file was deleted.

33 changes: 33 additions & 0 deletions README.md
@@ -0,0 +1,33 @@
# Assignments for Aalto Web Apps course
This repository contains all the assignments repositories as submodules.

##Cloning
To clone locally, you must clone the main repository and update the submodules:

git clone git@github.com:aaltowebapps/assignments.git
cd assignments
git submodule init
git submodule update

##Pulling the submodules updates from the main repository
If you have already cloned the main repository, you can update the submodules in the following way:

git pull origin
git submodule update

##Updating the submodules for the main repository
The submodules are not automatically update but must be updated manually. First we must go to the submodule
to update, pull the new version and commit the main repository:

cd <path to submodule>
git pull origin master
cd ..
git commit -am "Upgrading the submodule xxx"
git push origin

##Adding a submodule
You can add a new submodule to the main repo in the following way:

git submodule add <url to git repor>
git add .
git commit -m "Added a new submodule"

0 comments on commit 3912467

Please sign in to comment.