Usage:
git-release.ps1 [-source] <string> [-target] <string>
[-comment <string>] [-preserve <string[]>] [-cleanupOnly] [-force]
[-noFetch] [-dryRun] [-quiet]
The name of the branch to "release".
The name of the branch that will be updated with the released branch.
Aliases: -m, -message
If specified, overrides the commit message added to the upstream tracking branch.
A comma delimited list of branches to preserve in addition to those upstream
Use this flag when the released branch (from -branchName
) was already merged
to the target branch (-target
) to clean up the included branches.
Bypasses up-to-date checks for the source, target, and all branches being removed.
By default, all scripts fetch the latest before processing. To skip this (which
was the old behavior), include -noFetch
.
If specified, changes to branches will be displayed but no actual changes will be applied.
Suppress unnecessary output. Useful when a tool is designed to consume the output of this script via git rather than via PowerShell.