|
|
(2 intermediate revisions by the same user not shown) |
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 git://cmake.org/cmake.git</code>
| |
| :<code>$ cd cmake</code>
| |
| |align="center"|
| |
| [http://schacon.github.com/git/git-clone.html <code>git help clone</code>]
| |
| | |
| [[Git/Trouble#Firewall_Blocks_Port_9418|Connection refused]]?
| |
| |}
| |
| | |
| =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>]
| |
| |}
| |