CMake/Git/Download: Difference between revisions

From KitwarePublic
< CMake‎ | Git
Jump to navigationJump to search
(Created page with "This page documents how to download CMake through [http://git-scm.com Git]. See our table of contents for more information. Follow our [[Git/Download|Git download ...")
 
Line 12: Line 12:
|-
|-
|
|
:<code>$ git clone git://cmake.org/cmake.git</code>
:<code>$ git clone https://cmake.org/cmake.git</code>
:<code>$ cd cmake</code>
:<code>$ cd cmake</code>
|align="center"|
|align="center"|

Revision as of 19:14, 30 September 2015

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

Follow our Git download instructions to install Git.

Clone

Clone CMake using the commands

$ git clone https://cmake.org/cmake.git
$ cd cmake

git help clone

Connection refused?

Update

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

$ git pull

git help pull

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. One may create a local branch to track the upstream release branch instead:

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

git help checkout

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 v2.8.6

git help checkout

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