Speeding up git clone

1 · Vishnu Bharathi · Feb. 3, 2021, 2:23 a.m.
Imagine that you need to take the latest source code of a project and deploy it somewhere by creating some artifacts with it. If it is a git project with a few commits, a simple git clone ..... would do it. But if it is a project with thousands of commits, then you might be bored of your time waiting for the git clone to complete. This is often the case in CI/CD pipelines - that is where I ultimately learned this trick from :DI recently discovered something called shallow clones in git. The idea...