How to clone one branch only with git 2.21.0 ?
For example to clone the  4.0-dev of the joomla-cms repository into the joomla4x directory

git clone --branch '4.0-dev' --depth 1 joomla4x

I tried other techniques on the web without success. Apparently the order of parameters and simple quotes matter to make it work. Cheer up!