Skip to content

Instantly share code, notes, and snippets.

@devops-hacks
devops-hacks / DownloadFilesFromRepo.ps1
Created March 18, 2021 13:26 — forked from zerotag/DownloadFilesFromRepo.ps1
PowerShell function to download files from a GitHub repository
function DownloadFilesFromRepo {
<#
.SYNOPSIS
This function retrieves the specified repository on GitHub to a local directory with authentication.
.DESCRIPTION
This function retrieves the specified repository on GitHub to a local directory with authentication, being a single file, a complete folder, or the entire repository.
.PARAMETER User