Difference between revisions of "Documentation/Nightly/Developers/Build Instructions/CheckoutSourceCode"

From Slicer Wiki
Jump to: navigation, search
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 ?]]
 +
-->
  
* Clone the github repository
+
Check out the code using <code>git</code> and configure the <code>git svn</code> bridge:
  
  git clone git://github.com/Slicer/Slicer.git
+
<ol start="1" style="list-style-type: decimal;">
  
* 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.
+
  <li>
 +
    <p>Clone the github repository</p>
 +
    <pre>git clone git://github.com/Slicer/Slicer.git</pre>
 +
  </li>
  
* Configure the <code>git svn</code> bridge to ensure the mapping with svn revision.
+
  <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>
  
<pre>
+
  <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
</pre>
+
}}
 +
  </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:

  1. Clone the github repository

    git clone git://github.com/Slicer/Slicer.git
  2. Setup the development environment using the SetupForDevelopment.sh script as described on our Development With Git page.

  3. Configure the git svn bridge 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