ITK/Git/Download: Difference between revisions

From KitwarePublic
< ITK‎ | Git
Jump to navigationJump to search
No edit summary
Line 15: Line 15:
:<code>$ cd ITK</code>
:<code>$ cd ITK</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-clone.html <code>git help clone</code>]
[http://schacon.github.com/git/git-clone.html <code>git help clone</code>]


[[Git/Trouble#Firewall_Blocks_Port_9418|Connection refused]]?
[[Git/Trouble#Firewall_Blocks_Port_9418|Connection refused]]?
Line 25: Line 25:
:<code>$ git submodule update --init</code>
:<code>$ git submodule update --init</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html <code>git help submodule</code>]
[http://schacon.github.com/git/git-submodule.html <code>git help submodule</code>]
|-
|-
|
|
Line 34: Line 34:
:<code>$ git clone git://itk.org/ITKApps.git</code>
:<code>$ git clone git://itk.org/ITKApps.git</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-clone.html <code>git help clone</code>]
[http://schacon.github.com/git/git-clone.html <code>git help clone</code>]
|}
|}


Line 49: Line 49:
:<code>$ git submodule update</code>
:<code>$ git submodule update</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-pull.html <code>git help pull</code>]
[http://schacon.github.com/git/git-pull.html <code>git help pull</code>]


[http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html <code>git help submodule</code>]
[http://schacon.github.com/git/git-submodule.html <code>git help submodule</code>]
|-
|-
|
|
Line 69: Line 69:
:<code>$ git submodule update</code>
:<code>$ git submodule update</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html <code>git help checkout</code>]
[http://schacon.github.com/git/git-checkout.html <code>git help checkout</code>]


[http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html <code>git help submodule</code>]
[http://schacon.github.com/git/git-submodule.html <code>git help submodule</code>]
|-
|-
|
|
Line 82: Line 82:
:<code>$ git submodule update</code>
:<code>$ git submodule update</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html <code>git help checkout</code>]
[http://schacon.github.com/git/git-checkout.html <code>git help checkout</code>]


[http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html <code>git help submodule</code>]
[http://schacon.github.com/git/git-submodule.html <code>git help submodule</code>]
|-
|-
|
|
Line 94: Line 94:
:<code>$ git tag</code>
:<code>$ git tag</code>
|align="center"|
|align="center"|
[http://www.kernel.org/pub/software/scm/git/docs/git-tag.html <code>git help tag</code>]
[http://schacon.github.com/git/git-tag.html <code>git help tag</code>]
|}
|}

Revision as of 14:35, 12 October 2011

This page documents how to download ITK through Git. See our table of contents for more information.

Follow our Git download instructions to install Git.

Clone

Clone ITK using the commands

$ git clone git://itk.org/ITK.git
$ cd ITK

git help clone

Connection refused?

If you want to run tests, get the Testing/Data submodule:

$ git submodule update --init

git help submodule

Clone ITKApps using the commands

$ cd ..
$ git clone git://itk.org/ITKApps.git

git help clone

Update

Users that have made no local changes and simply want to update a clone with the latest changes may run

$ git pull
$ git submodule update

git help pull

git help submodule

Avoid making local changes unless you have read our developer instructions.

Release

After cloning your local repository will be configured to follow the upstream master branch by default. This means you will have access to cutting edge features, but along with these may come cutting edge bugs :). One may create a local branch to track the upstream release branch instead, which should guarantee only bug fixes to the functionality available in the latest release:

$ git checkout --track -b release origin/release
$ git submodule update

git help checkout

git help submodule

This local branch will always follow the latest release. Use the above instructions to update it. Alternatively one may checkout a specific release tag:

$ git checkout v3.20.0
$ git submodule update

git help checkout

git help submodule

Release tags never move. Repeat the command with a different tag to get a different release. One may list available tags:

$ git tag

git help tag