Difference between revisions of "Documentation/Nightly/Developers/Build Instructions/CheckoutSourceCode"
From Slicer Wiki
m |
|||
| Line 13: | Line 13: | ||
--> | --> | ||
| + | <!-- | ||
=== Git === | === Git === | ||
| + | --> | ||
| + | <span id="Git"></span> | ||
| + | <!-- | ||
Checking the code using Git and configuring the <code>git svn</code> bridge is the way to go. If you plan on contributing code, have a look at [[Documentation/{{documentation/version}}/Developers/Tutorials/ContributePatch|How to contribute a patch ?]] | Checking the code using Git and configuring the <code>git svn</code> bridge is the way to go. If you plan on contributing code, have a look at [[Documentation/{{documentation/version}}/Developers/Tutorials/ContributePatch|How to contribute a patch ?]] | ||
| + | --> | ||
| − | + | Check out the code using <code>git</code> and configure the <code>git svn</code> bridge: | |
| − | + | <ol start="1" style="list-style-type: decimal;"> | |
| − | + | <li> | |
| + | <p>Clone the github repository</p> | ||
| + | <pre>git clone git://github.com/Slicer/Slicer.git</pre> | ||
| + | </li> | ||
| − | + | <li><p>Setup the development environment using the [https://github.com/Slicer/Slicer/blob/master/Utilities/SetupForDevelopment.sh <code>SetupForDevelopment.sh</code>] script as described on our [[Documentation/Nightly/Developers/DevelopmentWithGit | Development With Git]] page.</p></li> | |
| − | < | + | <li> |
| + | <p>Configure the <code>git svn</code> bridge to ensure the mapping with svn revision.</p> | ||
| + | {{pre2|scroll| | ||
cd Slicer | cd Slicer | ||
git svn init http://svn.slicer.org/Slicer4/trunk | git svn init http://svn.slicer.org/Slicer4/trunk | ||
| Line 31: | Line 41: | ||
git checkout master | git checkout master | ||
git svn rebase | git svn rebase | ||
| − | </ | + | }} |
| + | </li> | ||
| + | </ol> | ||
<!-- | <!-- | ||
Revision as of 01:51, 15 June 2013
Home < Documentation < Nightly < Developers < Build Instructions < CheckoutSourceCode
|
For the latest Slicer documentation, visit the read-the-docs. |
CHECKOUT slicer source files
Check out the code using git and configure the git svn bridge:
-
Clone the github repository
git clone git://github.com/Slicer/Slicer.git
Setup the development environment using the
SetupForDevelopment.shscript as described on our Development With Git page.-
Configure the
git svnbridge to ensure the mapping with svn revision.cd Slicer git svn init http://svn.slicer.org/Slicer4/trunk git update-ref refs/remotes/git-svn refs/remotes/origin/master git checkout master git svn rebase