Skip to content

PayeTonKawaEPSI/profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Create a file named "clone_repos.ps1" and copy/paste this Powershell script inside =>
⚠️ Don't forget to adapt your $basePath !!!

$basePath = "YOUR_PATH\PayeTonKawaEPSI"
New-Item -ItemType Directory -Path $basePath -Force | Out-Null
Set-Location $basePath

$repos = @(
    "service-clients",
    "service-produits",
    "service-commandes",
    "shared-libs",
    "devops-infra",
    "docs"
)

# Check SSH connexion with GitHub
$sshTest = ssh -T git@github.com 2>&1

if ($sshTest -like "*successfully authenticated*") {
    $useSsh = $true
}
else {
    $useSsh = $false
}

foreach ($repo in $repos) {
    if ($useSsh) {
        git clone "git@github.com:PayeTonKawaEPSI/$repo.git"
    }
    else {
        git clone "https://github.com/PayeTonKawaEPSI/$repo.git"
    }
}

In a terminal place yourself in the script directory path and launch this command =>

./clone_repos.ps1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors