Skip to content

Getting the sources

shri edited this page Sep 13, 2010 · 20 revisions

The main IronRuby source GIT repo is at http://github.com/ironruby/ironruby/

Installing GIT

The following links include resources for installing and using GIT:

Creating a local GIT repository

You will first need to fork the IronRuby project. Creating a fork is recommended as it will allow you to contribute patches back easily. Click the “Fork” button on http://github.com/ironruby/ironruby/tree/master. This should create your personal fork, with a website like http://github.com/janedoe/ironruby/tree/master (where janedoe is your GIT username).

You can now use the git command-line client with many Linux distributions, Mac OS, Cygwin, and Windows (msysgit) to get the sources onto your local computer using the following commands:


git config —global branch.autosetupmerge true
git config —global user.name “Jane Doe”
git config —global user.email [email protected]

git clone [email protected]:janedoe/ironruby.git
cd ironruby
git remote add irmain http://github.com/ironruby/ironruby.git
git pull irmain master

At a later date, to get the latest updates from the IronRuby project, run the following command in the ironruby directory created above:

git pull irmain master

If there is a merge conflict, edit the unmerged files to remove the conflict markers, and then run the following command:

git commit -a

Working without a fork

You can skip creating a fork if you only want to browse the sources. In that case, you can clone the project directly as such:

git clone git://github.com/ironruby/ironruby.git
git pull

For more information there is an excellent tutorial on getting started with git here