git clone -b Applications/17.04 git://anongit.kde.org/marble ~/marble/sources
You can clone the sources to any directory on your system. If you have no preferences, choose ~/marble/sources as that is the directory we will use below.
Development happens directly in the master branch. If you want to use the latest features or want to contribute to Marble, choose the master branch. The code however is not as stable as the one in the release branches.
If stability is your main concern, choose the latest stable release branch, which can easily be recognized by the Applications/ prefix followed by a release date in year/month format, e.g. Applications/16.08 for the release in August 2016.
Here is a list of commonly used branch names:
Marble follows the common KDE release schedule. New features are developed in and merged to the master branch until the soft (hard) feature freeze. Afterwards a stabilizing period in master follows during which no new features and similar changes are committed to master. At the time of the first release candidate RC1 a new Applications/year.month branch is created from the current master branch. Afterwards the master branch is open for development again. The Applications/year.month are stable branches that never receive new features.
Don't worry too much about branches though! Thanks to git switching between branches is as easy as running e.g.
git checkout -b Applications/17.04 origin/Applications/17.04 and requires no Internet connection. No need to clone the repository again if you got the inital branch wrong above, just switch to it later.
mkdir -p ~/marble/build cd ~/marble/build cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_KF5=TRUE -DCMAKE_INSTALL_PREFIX=/usr/local ~/marble/sources make sudo make install