Git clone –depth 2 is vastly better than –depth 1 if you want to Git push later
(stackoverflow.com)
I've done a shallow clone of a large repo (git clone --depth 1 [email protected]:myOrg/myRepo.git). I can push new changes to the remote but the first push is horribly slow. Subsequent pushes are fine. The command indicates that the first push writes a lot of data to the remote:
I've done a shallow clone of a large repo (git clone --depth 1 [email protected]:myOrg/myRepo.git). I can push new changes to the remote but the first push is horribly slow. Subsequent pushes are fine. The command indicates that the first push writes a lot of data to the remote: