Git clone - add option to clone single branch

It would help if there was an option for git node for clone

My use case:

I’m using n8n workflow to create development env. Repo have tons of branches and I need just one or one TAG. To reduce time to clone it will be great to be able to add options → -b XXXX --single-branch https://xxxxx/xxxxx-yyy.git

Any resources to support this?

Are you willing to work on this?

Good use case - this would be a useful addition. While the native Git node doesn’t support --single-branch yet, you can work around it now using the Execute Command node:

git clone -b YOUR_BRANCH --single-branch https://xxxxx/xxxxx-yyy.git

This pulls only the target branch history and is significantly faster on repos with many branches or large histories. Upvoted the request.