Git clone step is very slow

Hi @aminelaadhari,

This is not an issue, just different behaviour.

Why it takes less on Circle CI? Because they cache your source code by default.

By default we don’t store your source code, the source code is only accessed on the build machine, and only in the way you specify it.

If you want us to store your source code you can configure the Build Cache to do so. You can find a related guide at: How to Cache the Source Code directory

Keep in mind that this means:

  1. Everything in the source dir will be stored (in the cache), including artifacts / files generated into the source dir.
  2. You will store a copy of the source code on our servers.

Another alternative might be to specify a Clone Depth for the Git Clone step, so that it won’t fetch the whole history every time.

If you have any questions just let us know! :slight_smile: