Invoke-GitSquash¶
SYNOPSIS¶
Squash all commits on a branch into a single commit
SYNTAX¶
Invoke-GitSquash [[-CommitMessage] <String>] [[-BranchName] <String>] [[-TempBranchName] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION¶
Squash all commits on a branch into a single commit
EXAMPLES¶
EXAMPLE 1¶
Invoke-GitSquash
Squash all commits on a branch into a single commit
PARAMETERS¶
-CommitMessage¶
The commit message to use for the squashed commit
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Squash
Accept pipeline input: False
Accept wildcard characters: False
-BranchName¶
The branch to squash
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Main
Accept pipeline input: False
Accept wildcard characters: False
-TempBranchName¶
Temporary branch name
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Init
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
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.