
TIPS - How to clone one branch only with git 2.21.0
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
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 https://github.com/joomla/joomla-cms/ --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!