Skip to content

Submitting code for the challenges

jpbida edited this page Apr 26, 2012 · 3 revisions

If you haven't already install and configure git. Make sure you've set up your contact information in the global configuration file.

git config --global user.name "Jan Kassens"
git config --global user.email "you@example.com"

Fork the RSIM project by navigating to http://github.com/jpbida/RSIM and clicking the fork button. This will create a read-write git repository that is a copy of the current RSIM repository. Navigate to your forked version and create a local copy to work on.

git clone git@github.com:shmambo/RSIM.git

or update your clone:

cd RSIM
git fetch

Make changes.

add single files to the commit:

git add   ...

...and commit

git commit

or commit all changed files:

git commit -a

create a patch from the latest commit:

git format-patch HEAD^

This creates a file in the current directory ending in .patch. You should mv this file into the solutions directory for the given challenge.

mv *.patch RSIM/challenges/challenge1/solutions 

Push your solutions to your RSIM repository

git push

Attach your solution to the Challenge so others can comment on it. This is done by going to your forked repository and clicking the pull request button in the upper right corner. Attach your poll request to the Challenge issue in the main RSIM repository.