Returns the creation and last modification metadata for a file in a git repo.
Get-GitFileMetadata.ps1 [-Path] <String[]> [-Recurse] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-GitFileMetadata.ps1 README.md
Path : .\README.md CreateCommit : 1fde7af CreateAuthor : Brian Lalonde CreateEmail : brianary@example.com CreateDate : 01/19/2015 11:44:15 LastCommit : dbe27ba LastAuthor : Brian Lalonde LastEmail : brianary@example.com LastDate : 12/07/2020 20:17:15
The path (or paths) to get metadata for.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Recurse into subdirectories.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
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.