Shows what the upstream branches are of the current (or specified) branch.
Usage:
git-show-upstream.ps1 [-target <string>] [-recurse] [-includeRemote]
[-noFetch] [-quiet]
The name of the branch to list upstream branches. If not specified, use the current branch.
If specified, list all upstream branches recursively.
If specified, include the remote name (if any) in the output branch list. For
example, if the remote is origin
, all branches listed would start with
origin/
.
By default, all scripts fetch the latest before processing. To skip this (which
was the old behavior), include -noFetch
.
Suppress unnecessary output. Useful when a tool is designed to consume the output of this script via git rather than via PowerShell.