github - What is git-repo init and git-repo sync? -


i'm using google's git-repo plugin. according understanding repo sync download whole source code (i.e. previous revisions) repository. why taking lot of time complete whole process.

can download latest commit repository?

i don't use repo, appears can pass --depth flag repo init. using repo init -u url --depth=1. depth flag gets passed git-clone , create repo part of history:

--depth <depth>

create shallow clone history truncated specified number of revisions. shallow repository has number of limitations (you cannot clone or fetch it, nor push nor it), adequate if interested in recent history of large project long history, , want send in fixes patches.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -