Check out shallow git copies

Git allows to check out shallow copies of repositories, minimizing the network traffic and obviously the disk space used. For the installation this should suffice.