Instructions to download sources from GIT repository, specific for stable branch 6.0 (release series v6.0.x).
Direct download of sources from GIT for latest Kamailio v6.0.x.
git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio
cd kamailio
git checkout -b 6.0 origin/6.0
Note: if your git client version does not support –no-single-branch command line parameter, then just remove it.
Or, for newer git versions, with direct branch 6.0 checkout:
git clone --depth 1 --branch 6.0 https://github.com/kamailio/kamailio kamailio
cd kamailio
Note: if you want to have the full commit history, then remove --depth 1 command line parameter.