Skip to content

Instantly share code, notes, and snippets.

@dwendo
dwendo / cloneRepos.ps1
Last active January 8, 2023 20:40
Clone multiple repos with powershell
# import multiple remote git repositories to local Source dir
param (
[string]$localFolder = "c:\Source\",
[array]$repos = @("myRepo", "repo1")
)
$repoLocation = "https://github.com/"
# for each repo found remotely, check if it exists locally
# if dir exists, skip, if not, clone the remote git repo into it