Get-GithubRawUrl
Resolves a GitHub or Gist URL to one or more raw content URLs.
Property
Value
Module
OSD
Platform
WinPE (amd64 / arm64)
Description
Converts common GitHub URL forms (blob, raw, and gist) to direct raw content URLs that can be consumed by download or content retrieval commands. For gist pages, the function queries the GitHub Gist API to return raw URLs for all files.
Syntax
Get-GithubRawUrl [-Uri] <Uri[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]Parameters
Parameter
Type
Required
Description
-Uri
Uri[]
True
A GitHub, Gist, raw URL, or other absolute URI to resolve.
Examples
Example
Get-GithubRawUrl -Uri 'https://github.com/OSDeploy/OSD/blob/master/README.md'
Returns the matching raw.githubusercontent.com URL for README.md.Example
Related
Last updated
Was this helpful?

