A much better solution that I have learnt from Svelte is npx degit
. I am not sure of a pure Git solution. (i.e. clone last commit only, at the chosen branch, commit or tag.)
Read next

The best web accessibility tools for developers in 2021
Jake Tracey -

Vue or React?
Ghaleb -

What is CI/CD? Introduction to CI/CD for newbies
RealToughCandy.io -

The web dev tools that helped me get s*** done in 2020
Ben Holmes -
Discussion