Skip to content

Resume‑GitRebase

viscalyxbot edited this page Sep 30, 2025 · 1 revision

SYNOPSIS

Resumes a Git rebase operation after resolving conflicts.

SYNTAX

Resume-GitRebase [[-Path] <String>] [-Skip] [-Force] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Resume-GitRebase command resumes a rebase operation after conflicts have been resolved, or skips the current commit during a rebase. It uses the Invoke-Git command to execute the git rebase operation. The command validates that the repository is in a rebase state before proceeding.

EXAMPLES

EXAMPLE 1

Resume-GitRebase

Resumes the rebase operation in the current directory after conflicts have been resolved.

EXAMPLE 2

Resume-GitRebase -Skip

Skips the current commit and continues the rebase operation in the current directory.

EXAMPLE 3

Resume-GitRebase -Path 'C:\repos\MyProject'

Resumes the rebase operation in the 'C:\repos\MyProject' repository after conflicts have been resolved.

PARAMETERS

-Force

Forces the operation to proceed without confirmation prompts when similar to -Confirm:$false.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Path

Specifies the path to the git repository directory. If not specified, uses the current directory.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: (Get-Location).Path
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Skip

Skips the current commit and continues the rebase operation. If not specified, the command will continue the rebase with the resolved changes.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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

This function does not accept pipeline input.

OUTPUTS

None

This function does not return any output.

NOTES

This function requires Git to be installed and accessible from the command line. The repository must be in a rebase state for this command to succeed.

RELATED LINKS

Clone this wiki locally