Cloning all remote branches with PowerShell

It's been over a year since this article was last updated. The information below might be outdated. Please contact the author for more.

Yesterday I needed to clone the branches of a repository that I am doing a performance improvement (later on I’ll tell you how fun it was). As my time is being counted in nano seconds lately, I am creating scripts for all possible repetitive tasks that come up.

I found this bash script from the internet

from which I decided to make a PowerShell version. Grab a copy yourself:

Hope this saves you some nanoseconds.

Thanks for reading!

Last edited on Nov, 03, 2018 at 1:34 pm