Further improving on @phatblat's answer:
git clone --no-checkout <repository> tmp \
&& mv tmp/.git . \
&& rmdir tmp \
&& git checkout master
as one liner:
git clone --no-checkout <repository> tmp && mv tmp/.git . && rmdir tmp && git checkout master