Skip to content

Get GitFile

apobekiaris edited this page Sep 4, 2020 · 1 revision

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Get-GitFile

SYNOPSIS

Returns a git repository files respecting a filter.

SYNTAX

Get-GitFile [-Url] <String> [[-Path] <String[]>] [[-Filter] <String>] [-Recurse] [-Force] [<CommonParameters>]

DESCRIPTION

Returns a git repository files respecting a filter.

EXAMPLES

Example 1

PS C:\> Get-GitFile "https://apobekiaris:$env:GithubToken@github.com/eXpandFramework/storage.git" -Filter *Package* -Recurse

    Directory: C:\Users\Tolis\AppData\Local\Temp\storage\Twitter

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---            9/4/2020 11:05 AM            146 NugetPackages.txt
-a---            9/4/2020 11:05 AM            221 package.json

Clones the remote repo and returns the files match the *Package* filter

PARAMETERS

-Filter

{{ Fill Filter Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Force

{{ Fill Force Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

{{ Fill Path Description }}

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Recurse

{{ Fill Recurse Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Url

{{ Fill Url Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally