Run git clone https://github.com/mapbox/mapbox-gl-native.git to obtain the source code. This will check out the master branch by default.