Last year I was working on enterprise project which has been maintaining for a 3/4 years. In the beginning of the project's repository designed as single repository for android and ios projects but during development of project it split up to separate repositories. But even when i run git clone command took almost 15 minutes. I thought it won't be problem because I won't run that command frequently but what happened ? I started to run git clone commit frequently due to ci server. Because I created jenkins job to run tests and build apk during our pr process which basically do below steps
- Setup android environment
- Clone project
- Run unit test
- Build apk
Until today i didn't aware of how to speed up project clone time
If I'd run
git clone **url** --single-branch **branch-name** depth=1
instead of
git clone **url**
it would have been 7 times faster.
Top comments (0)