The document tells you to clone branch 4.2. But that branch has not been touched in a long while. If you really want Plone 4 still, try the 4.3 branch (
git checkout 4.3 should do it).
But indeed: unless you have a good reason, starting with 5.1 would be better.