VTK/Git/Download: Difference between revisions

From KitwarePublic
< VTK‎ | Git
Jump to navigationJump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This page documents how to download VTK through [http://git-scm.com Git].
The instructions previously available on this page have been superseded. See [https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/download.md here].
See our [[VTK/Git|table of contents]] for more information.
 
Follow our [[Git/Download|Git download instructions]] to install Git.
 
=Clone=
 
{| style="width: 100%"
|-
|width=60%|
Clone VTK using the commands
|-
|
:<code>$ git clone git://vtk.org/VTK.git</code>
:<code>$ cd VTK</code>
|align="center"|
[http://schacon.github.com/git/git-clone.html <code>git help clone</code>]
 
[[Git/Trouble#Firewall_Blocks_Port_9418|Connection refused]]?
|-
|
Clone VTKData using the commands
|-
|
:<code>$ cd ..</code>
:<code>$ git clone git://vtk.org/VTKData.git</code>
|align="center"|
[http://schacon.github.com/git/git-clone.html <code>git help clone</code>]
|}
 
=Update=
 
{| style="width: 100%"
|-
|width=60%|
Users that have made no local changes and simply want to update a
clone with the latest changes may run
|-
|
:<code>$ git pull</code>
|align="center"|
[http://schacon.github.com/git/git-pull.html <code>git help pull</code>]
|-
|
Avoid making local changes unless you have read our [[VTK/Git/Develop|developer instructions]].
|}
 
=Release=
 
{| style="width: 100%"
|-
|width=60%|
After cloning your local repository will be configured to follow the
upstream '''master''' branch by default.
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:
|-
|
:<code>$ git checkout --track -b release origin/release</code>
|align="center"|
[http://schacon.github.com/git/git-checkout.html <code>git help checkout</code>]
|-
|
This local branch will always follow the latest release.
Use the [[#Update|above instructions]] to update it.
Alternatively one may checkout a specific release tag:
|-
|
:<code>$ git checkout v5.8.0</code>
|align="center"|
[http://schacon.github.com/git/git-checkout.html <code>git help checkout</code>]
|-
|
Release tags never move.
Repeat the command with a different tag to get a different release.
One may list available tags:
|-
|
:<code>$ git tag</code>
|align="center"|
[http://schacon.github.com/git/git-tag.html <code>git help tag</code>]
|}

Latest revision as of 20:42, 16 March 2015

The instructions previously available on this page have been superseded. See here.