Skip to content

Instantly share code, notes, and snippets.

View chrissainty's full-sized avatar
🔥

Chris Sainty chrissainty

🔥
View GitHub Profile
@chrissainty
chrissainty / cloneRepos.ps1
Created June 14, 2017 10:56 — forked from dwendo/cloneRepos.ps1
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