-
-
Notifications
You must be signed in to change notification settings - Fork 7
Get GitFile
apobekiaris edited this page Sep 4, 2020
·
1 revision
Returns a git repository files respecting a filter.
Get-GitFile [-Url] <String> [[-Path] <String[]>] [[-Filter] <String>] [-Recurse] [-Force] [<CommonParameters>]
Returns a git repository files respecting a filter.
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
{{ Fill Filter Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Force Description }}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Path Description }}
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Recurse Description }}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Url Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.