CMake/Git/Download: Difference between revisions

From KitwarePublic
< CMake‎ | Git
Jump to navigationJump to search
(Replaced content with "The instructions previously available on this page have been superseded. See [https://gitlab.kitware.com/cmake/cmake/blob/master/Help/dev/README.rst here].")
 
Line 1: Line 1:
This page documents how to download CMake through [http://git-scm.com Git].
The instructions previously available on this page have been superseded. See [https://gitlab.kitware.com/cmake/cmake/blob/master/Help/dev/README.rst here].
See our [[CMake/Git|table of contents]] for more information.
 
Follow our [[Git/Download|Git download instructions]] to install Git.
 
=Clone=
 
{| style="width: 100%"
|-
|width=60%|
Clone CMake using the commands
|-
|
:<code>$ git clone https://cmake.org/cmake.git</code>
:<code>$ cd cmake</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 [[CMake/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:
|-
|
:<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 v2.8.6</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 15:15, 6 March 2017

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