Invoke-GitSquash¶
SYNOPSIS¶
Squash all commits on a branch into a single commit
SYNTAX¶
__AllParameterSets¶
Invoke-GitSquash [[-CommitMessage] <string>] [[-BranchName] <string>] [[-TempBranchName] <string>]
[<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
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¶
-BranchName¶
The branch to squash
Type: System.String
DefaultValue: main
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-CommitMessage¶
The commit message to use for the squashed commit
Type: System.String
DefaultValue: Squash
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-TempBranchName¶
Temporary branch name
Type: System.String
DefaultValue: init
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.Void¶
{{ Fill in the Description }}
NOTES¶
RELATED LINKS¶
{{ Fill in the related links here }}