gg

Git with less typing

gg upstream

gg upstream [-b BRANCH] [REF]

query or set upstream branch

If no positional arguments are given, the branch’s upstream branch is printed to stdout (defaulting to the current branch if none given).

If a ref argument is given, then the branch’s upstream branch (specified by branch.*.remote and branch.*.merge configuration settings) will be set to the given value.

Options

-b branch
branch to query or modify