Shallow clone on windows machines

I am trying to do a shallow clone on windows, because our repository is almost a gigabyte and takes an eternity to clone, however all orbs I’ve found for this only work on bash-based shells, and my pipeline only works on powershell. So, I want to shallow clone on powershell.

I’ve tried a few things like injecting the fingerprint, setting known-hosts, etc. However, I am getting this every time:

Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

How would I solve it?


If you go to your Project settings on the left-hand side click SSH KEYS within that you will see there are three sections.

You will need to add your SSH key to the deploy key section. Please be aware that you need a specific SSH key which can be generated using the following command: ssh-keygen -t ed25519 -C ""

You may also need to authorise the user key section.

Additionally, if you have already set up your SSH key you may need to add another SSH which can be done at the bottom of the page using the Additional SSH Keys section.

You may also need to use the add_ssh_keys command which is linked here to be able to add your SSH key.

Kind Regards
Owen Oliver